Results 1 to 2 of 2
  1. #1
    accesslover is offline Novice
    Windows 11 Access 2021
    Join Date
    Jan 2023
    Posts
    9

    search record in vba

    hello


    I have this example
    I want to inter user id
    So, after i leave textbox access will search for this Id if it is already in the table it will bring it back to the form to view
    but if there is no record with that ID it will allow me to continue adding a new user with new Id


    how I can do it in vba ?????

    userid.accdb

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Many ways to do that, here is a quick one using a bound form and a combo used for searching with code in NotInList event to add new record.

    Cheers,
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 6
    Last Post: 06-06-2022, 08:39 PM
  2. Replies: 1
    Last Post: 02-28-2018, 01:02 PM
  3. Replies: 8
    Last Post: 07-23-2017, 02:04 PM
  4. Replies: 6
    Last Post: 02-02-2015, 02:14 PM
  5. Record search
    By dhammikai in forum Forms
    Replies: 3
    Last Post: 04-05-2010, 10:19 AM

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