criteria does not work

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using 2 combo boxes that allow input on a form. I am trying to set up a
query that that allows me to select a name and then a [between] date. The
query runs the between dates but will not work for the name. I am using -
Like "*" & [Associate Name] & "*" - but it does not prompt when the query is
run only the Between date runs.

Table (Tblevents) colums are:
Associate Name
Date
Function
Sub Function
Oldest
Hold Over
 
I am using 2 combo boxes that allow input on a form. I am trying to set up a
query that that allows me to select a name and then a [between] date. The
query runs the between dates but will not work for the name. I am using -
Like "*" & [Associate Name] & "*" - but it does not prompt when the query is
run only the Between date runs.

Table (Tblevents) colums are:
Associate Name
Date
Function
Sub Function
Oldest
Hold Over

You can't use a field name as a prompt.

As criteria on the [Associate Name] field, write:
Like "*" & [Enter a Name] & "*"

Note: Date and Function are reserved words and should not be used as
field names.

For more information and other reserved words see:
http://www.allenbrowne.com/AppIssueBadWord.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top