B
brett
I did not have this set but at the same time, I am not
understanding this part. My goal is to have a VB code or
macro set the parameter/criteria/whatever of a certain
query field and then run the query; I know in the criteria
field that you can put a statement in brackets so it would
prompt but having user prompting when a query is run to
view a report is breaking some of my reports so I want
something to put a number in the query field and then have
the query run after the number is inserted. I'm starting
to see my only other alternative is to have code create
and delete a query but I'd rather not do that if I can
avoid it (setting a criteria value of a field would be
better). If I need to use the parameters dialog, that's
fine but I don't understand how that works. I guess the
overall question is can a macro or VB code set a criteria
value of a query field (the help documentation never
stated a query, it always stated a form).
Brett
-----------------------------------------------------------
In query design view, have you opened the Query
menu, selected Parameters and completed the
Parameters dialog (Access 2000)? You need to
do this to insert a Parameters clause.
To check whether you have or have not inserted
a parameters clause, in query design view, open
the View menu and select SQL view. You will see
your query as an SQL statement, which should
begin with the word Parameters.
I haven't seen your earlier posts, so hope this
addresses your issue.
Regards
Geoff
understanding this part. My goal is to have a VB code or
macro set the parameter/criteria/whatever of a certain
query field and then run the query; I know in the criteria
field that you can put a statement in brackets so it would
prompt but having user prompting when a query is run to
view a report is breaking some of my reports so I want
something to put a number in the query field and then have
the query run after the number is inserted. I'm starting
to see my only other alternative is to have code create
and delete a query but I'd rather not do that if I can
avoid it (setting a criteria value of a field would be
better). If I need to use the parameters dialog, that's
fine but I don't understand how that works. I guess the
overall question is can a macro or VB code set a criteria
value of a query field (the help documentation never
stated a query, it always stated a form).
Brett
-----------------------------------------------------------
In query design view, have you opened the Query
menu, selected Parameters and completed the
Parameters dialog (Access 2000)? You need to
do this to insert a Parameters clause.
To check whether you have or have not inserted
a parameters clause, in query design view, open
the View menu and select SQL view. You will see
your query as an SQL statement, which should
begin with the word Parameters.
I haven't seen your earlier posts, so hope this
addresses your issue.
Regards
Geoff