Query problem

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

Guest

I'm trying to query a table, in which the criteria comes from a form. Why
does Access keep throwing parameter boxes at me that don't tell me what
parameter to input, and how do I get rid of it?!

Thanks!
 
because you have confused access and it's wants
clairification.
in the query's criteria pane put this
[forms]![yourform]![yourtextbox]
this way access will know where to get the parameter.
 
I'm trying to query a table, in which the criteria comes from a form. Why
does Access keep throwing parameter boxes at me that don't tell me what
parameter to input, and how do I get rid of it?!

Thanks!

It's bringing up the message either because the form is not open at
the time you run the query (open the Form first, enter the criteria,
and *then* open a Form or Report based on the query, perhaps from a
command button on the form itself); or because you have the criteria
syntax incorrect. The proper syntax is

=[Forms]![NameOfTheForm]![NameOfTheControl]


John W. Vinson[MVP]
 

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