Results 1 to 2 of 2
  1. #1
    Sibtain is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Karachi
    Posts
    15

    Post How to verify Insert Operation

    I am using an insert query how can i verify it programetically without looking into the table.

    e.g db.execute("Insert into xyz values (a,b,c,d);")



    is there any true or false or any other indicator or anything elase which verify the insert operation

    Regards
    Aryan

  2. #2
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    Sibtain -

    One way would be to check the number of records in the table before the process and put that number into a variable. Check out the DCount() function in Access Help.

    Then, run the insert operation.

    Once completed, check the record count again and put that number into a different variable.

    Compare the two variables, if equal operation was unsuccessful. If the second variable is greater than the first by one, operation was successful.

    Hope this helps,

    Jim

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-18-2011, 07:27 AM
  2. Verify this Query
    By dongodu in forum Queries
    Replies: 1
    Last Post: 06-21-2011, 11:08 AM
  3. Verify This Error
    By dongodu in forum Queries
    Replies: 3
    Last Post: 05-30-2011, 07:19 AM
  4. Need to verify this church database design
    By carl in forum Database Design
    Replies: 3
    Last Post: 03-05-2011, 12:26 AM
  5. Verify state field
    By pwmichaelsr in forum Access
    Replies: 5
    Last Post: 08-16-2010, 12:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums