Results 1 to 3 of 3
  1. #1
    dwaterman is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Location
    Elkhart, IN
    Posts
    22

    Find Record


    I am working in Access 2010. My main control on my form is a Serial Number field. My form opens to a new record. I would like to be able to enter the Serial Number in this field and have Access go to this record if it exists. If it does not exist, to continue to the next field, since I would want to create a new record. I tried using DoCmd to locate the record in the before update event, but I get an error message about not being able to add the data. If I use the After Update event, I assume I would be creating a new duplicate record before moving to the existing one. Any suggestions?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Watch this free video from youtube. It says 2013 but it will work fine in 2010. It may give you some ideas, and will show you some coding concepts.
    https://www.youtube.com/watch?v=N0X8Hg-Sm6A

  3. #3
    dwaterman is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Location
    Elkhart, IN
    Posts
    22
    Thank you for your response. I am trying to mimic other software we use where the search is not from a separate field, but happens in the form. This video was very good at explaining filters and how to do things without using the wizard. It was helpful.

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

Similar Threads

  1. Find Record with date before Current Record
    By mrmims in forum Queries
    Replies: 1
    Last Post: 10-01-2015, 08:10 AM
  2. Replies: 1
    Last Post: 06-23-2014, 07:21 AM
  3. Replies: 1
    Last Post: 05-26-2014, 12:39 PM
  4. Replies: 4
    Last Post: 04-01-2014, 02:33 PM
  5. Best way to find a record?
    By Drak in forum Programming
    Replies: 3
    Last Post: 01-31-2012, 10:40 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