Results 1 to 3 of 3
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Doing a search in a blank form


    On my form, I click Add New record, in order to clear out all existing values. Then I type a last name in the last name field and click the Find button. I get an error message saying I must enter a gymnastID. Undoubtedly this is because gymnastID is the primary key and Access thinks I am trying to enter a new record, when I am not. I would like to be able to do a search on a clean form just like I can do with Deltek GCS Premier.

    Is there a way to circumvent this problem?

  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
    This is a bound control so cannot type search criteria into it. That would require an unbound control and some code.

    Could Right Click in the control and use the intrinsic filter/search utility.
    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
    Quote Originally Posted by Access_Novice View Post

    ...I click Add New record...

    ...Access thinks I am trying to enter a new record, when I am not...
    Of course you are! Adding a New Record is what the Add New Record button does! June7 has given you the simplest approach, or you could use a Combobox with the "Find a record based on the value I selected in my combobox option, or a Textbox and Command Button utilizing code like this Combobox option uses.

    Linq ;0)>

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

Similar Threads

  1. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  2. Replies: 3
    Last Post: 08-22-2012, 03:28 AM
  3. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  4. Replies: 5
    Last Post: 07-13-2012, 01:15 AM
  5. Replies: 1
    Last Post: 04-20-2012, 03:16 AM

Tags for this Thread

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