Results 1 to 4 of 4
  1. #1
    beililiu is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    2

    Issue with using a form field as query criteria

    Hi everyone, I have a form called Purchase Order Form that has a field textbox called [SearchCustomer]. I have combo box on the same form that shows a list of customers based on what the user has input into the SearchCustomer field. The combo box runs a query on the Customers table using whatever the user has typed into SearchCustomer. However, every time I try to use the form, I get the Enter Parameter pop up window that is asking me for the SearchCustomer Criteria. This happenes even when I enter a name into SearchCustomer. It's as if the query doesn't see that field at all. Any thoughts?

  2. #2
    R_Badger is offline Knows a few tricks
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Suffolk, UK
    Posts
    262
    Are you sure you have defined the control properly in the query?

    It should be:

    [Forms]![Purchase Order Form]![SearchCustomer]

  3. #3
    beililiu is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    2
    Hi, yes I have made sure that the control is properly defined. Interestingly, I just changed the Has Module property under Form Property from Yes to No and now I don't receive that issue anymore.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by beililiu View Post
    ...I just changed the Has Module property under Form Property from Yes to No and now I don't receive that issue anymore.
    I hope you know that that is not a solution. Something else is going on.

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

Similar Threads

  1. Different criteria for same field in same query
    By teirrah1995 in forum Queries
    Replies: 10
    Last Post: 08-12-2011, 01:03 PM
  2. Replies: 2
    Last Post: 07-12-2011, 07:53 PM
  3. Query multiple field & criteria
    By fua in forum Access
    Replies: 2
    Last Post: 11-04-2009, 08:22 PM
  4. Replies: 3
    Last Post: 06-03-2009, 07:15 AM
  5. query - criteria based on another row field value
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 05-29-2009, 04:17 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