+ Reply to Thread
Results 1 to 5 of 5

run-time error 1004 application-defined or object-defined error

  1. #1
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    run-time error 1004 application-defined or object-defined error

    Hello everyone,

    I have a userform for data entry, many user complained about error message "Runtime error1004 application defined or object defined erroe"
    I have attached screenshots for the error

    The database is attached
    userform : maintenance
    password: maintuser

    debug.png
    debug1.png
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: run-time error 1004 application-defined or object-defined error

    TBRow has no value? IRow seems to be your last row... but TBRow is likely 0 when the code runs?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: run-time error 1004 application-defined or object-defined error

    Arkadi
    its not defined in this code, but the error doesnt appear each time
    This code supposed to edit an existing record

    same code was for adding new record but TBRow is replace with IRow
    Sorry of looking dumb am new to vba i found this codes online, but what i mean the error happens occasionaly not all the time

  4. #4
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: run-time error 1004 application-defined or object-defined error

    Last edited by Mahmoudelnemr; 07-18-2019 at 09:17 AM.

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: run-time error 1004 application-defined or object-defined error

    Looks very similar to your query in attached link.
    If the solution offered worked then, apply the same logic to your present dilemma.
    torachan.


    [QUOTEhttps://www.excelforum.com/excel-programming-vba-macros/1279899-updating-record-using-userform-thanks-torachan.html#post5140190][/QUOTE]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Error message: Run-Time error '1004 '; application-defined or object-defined error
    By Davasu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2015, 06:52 AM
  2. Replies: 1
    Last Post: 10-22-2015, 05:50 AM
  3. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  4. excel macro run time error '1004'- Application defined or object defined error
    By kmadan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 09:51 AM
  5. Replies: 1
    Last Post: 03-12-2014, 12:42 PM
  6. [SOLVED] Run time error 1004 Application-Defined or Object-Defined Error - Placing data into next e
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-27-2014, 12:57 PM
  7. [SOLVED] run-time error '1004' application-defined or object-defined error - Excel 2007
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 02:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1