Results 1 to 4 of 4
  1. #1
    Drak is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    22

    Best way to find a record?

    If I have a form that's bound to a table, and want to view a specific record, what's the best / most efficient method of doing so?


    I use the "Filter" property on some forms, or use the DAO recordset object on others.
    Then some, I do it right inside the query (form bound to a query) and the criteria would be a text box/combo box or similar.

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    It depends on whether you want the user to be able to modify a record or have it as view-only. If modification is needed, then bind it to the table and filter. if its view-only, then bind the form to a query and use the textbox.

  3. #3
    Drak is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    22
    Quote Originally Posted by TheShabz View Post
    It depends on whether you want the user to be able to modify a record or have it as view-only. If modification is needed, then bind it to the table and filter. if its view-only, then bind the form to a query and use the textbox.
    So If I have a combo box filled with customer names, on the "afterupdate" event of the box, set a filter to the form?
    I would like them to be able to modify the information. Current I use DAO.FindFirst to return a record. But using the form filter would be more efficient?

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I wouldn't use the combobox in that manner, as once you have a significant amount of customers, scrolling to find a customer becomes a pain. Try this Find as you Type from Allen Browne

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

Similar Threads

  1. Find record
    By hithere in forum Programming
    Replies: 11
    Last Post: 01-10-2012, 04:26 PM
  2. Find Record using Query
    By tomself1 in forum Programming
    Replies: 3
    Last Post: 04-18-2011, 09:34 AM
  3. Replies: 1
    Last Post: 05-16-2009, 08:47 AM
  4. Find Record button error
    By Zedlexx in forum Forms
    Replies: 0
    Last Post: 03-11-2009, 09:26 AM
  5. How to Find a Record
    By lschlitt in forum Programming
    Replies: 2
    Last Post: 09-09-2006, 06:24 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