dialog box/parameter query

A

adker

I'm using a list box to create the parameter for a query and whatever I name
my text box, I get a request to reenter the parameter when I run the query.
The query always runs fine but I can't understand why I have to enter the
parameter twice. When i create the query I use the expression maker and copy
directly from the dialog box to insert the parameter in the query. Any
suggestions will be very much appreciated.
 
J

John W. Vinson

I'm using a list box to create the parameter for a query and whatever I name
my text box, I get a request to reenter the parameter when I run the query.
The query always runs fine but I can't understand why I have to enter the
parameter twice. When i create the query I use the expression maker and copy
directly from the dialog box to insert the parameter in the query. Any
suggestions will be very much appreciated.

Are you using

[Forms]![NameOfTheForm]![NameOfTheControl]

as your parameter? It won't work otherwise.

Please post the SQL view of your query, and the name of your form and control,
if this isn't helping.
 
A

adker

John W. Vinson said:
I'm using a list box to create the parameter for a query and whatever I name
my text box, I get a request to reenter the parameter when I run the query.
The query always runs fine but I can't understand why I have to enter the
parameter twice. When i create the query I use the expression maker and copy
directly from the dialog box to insert the parameter in the query. Any
suggestions will be very much appreciated.

Are you using

[Forms]![NameOfTheForm]![NameOfTheControl]

as your parameter? It won't work otherwise.

Please post the SQL view of your query, and the name of your form and control,
if this isn't helping.
 

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

Top