Results 1 to 2 of 2
  1. #1
    Robotdude is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    1

    Noob with a few questions


    Hi, I'm trying to create a simple form to search a database in access. I have a couple of questions:

    I am using a simple form with 3 fields (using textboxes). I want to be able to type in to any one of these fields and search that field for the typed in value and populate the other fields (textboxes) with the appropriate data. The problem I'm having is that when I hit the find button that I added to the form, sometimes in the database, the values get written over with whatever was in one of the textboxes on the form. How do I either prevent this from happening or lock the database and make it read only? I'm sure it's a pretty easy problem but I'm stumped.

    The second thing I want to do is have one of the fields auto search once a certain number of characters are typed in, using the docmd.findrecord in the change event in VB code. I seem to have the same problem with fields being overwritten in the database the same as above, but I also can't get the docmd.findrecord to work properly, even though I think I've entered in all the arguments correctly. It should work just like the find button correct? Can anyone give me an example of how to use this command?

    Reason being is I want to use a barcode scanner in the one field and after scanning I want the form to automatically search for the barcode value and populate the other fields based on that barcode value.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Controls used to input search criteria must be UNBOUND.

    I've never used DoCmd.FindRecord.

    For 'Find as you type' functionality, review: http://allenbrowne.com/AppFindAsUTypeCode.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Noob Help
    By mryanp in forum Access
    Replies: 5
    Last Post: 01-04-2013, 04:10 PM
  2. Noob help!
    By sharVyn in forum Access
    Replies: 3
    Last Post: 02-02-2012, 09:46 AM
  3. Noob help please
    By cdzajp in forum Queries
    Replies: 3
    Last Post: 06-22-2011, 12:40 PM
  4. noob help please
    By cdzajp in forum Queries
    Replies: 3
    Last Post: 05-06-2011, 07:35 AM
  5. Some questions from a noob
    By Seamus in forum Database Design
    Replies: 3
    Last Post: 04-30-2010, 05:47 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