Results 1 to 4 of 4
  1. #1
    Cedarguy is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    May 2012
    Posts
    37

    Determine the existence of a record being added

    I have a table called FAMILY which is at the top of the relationship chain. When I add a new FAMILY via the form associated with it, I need to determine that the family doesn't already exist. Which control can I use (and how) on say the NAME field, that would list for me all the names that match the partial entry I make. For instance, if I'm adding David Brown and enter "Da", all names starting with "Da" should be listed so I can visually verify whether or not David Brown exists in the table.



    I know all this is a lot to ask but I'm also certain that this is nothing new, so if I can be referred to an existing example, that would be awesome.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Review:
    http://datapigtechnologies.com/flash...tomfilter.html
    https://www.accessforums.net/showthr...other-criteria

    Shouldn't user try search on lastname anyway? Could have a combobox with a RecordSource like:
    SELECT LastName & ", " & FirstName FROM tablename ORDER BY LastName, FirstName;

    Then with AutoExpand property as Yes the field will automatically display matching names, if any, as the user types.
    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.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Allen Browne has a hack to give a Textbox Control an AutoExpand-like function

    http://allenbrowne.com/AppFindAsUType.html

    but as June7 suggested, why not use the native AutoExpand function of a Combobox for this task?

    As a rule

    Reinventing the wheel = Spinning one's wheels

    Linq ;0)>

  4. #4
    Cedarguy is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    May 2012
    Posts
    37
    Thank you June7 and Missinglinq; you have given me enough to chew on; regards

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

Similar Threads

  1. Blank Record Being Added to Table
    By Andrew in forum Programming
    Replies: 8
    Last Post: 12-22-2011, 04:41 AM
  2. New record not being added to main form
    By hmcquade in forum Forms
    Replies: 10
    Last Post: 07-21-2011, 10:07 AM
  3. Replies: 1
    Last Post: 06-09-2011, 07:11 PM
  4. Replies: 5
    Last Post: 10-15-2010, 01:19 PM
  5. Replies: 5
    Last Post: 06-29-2010, 01: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