create parameters dynamically?

C

Craig Buchanan

I would like to create a form that searchs for incidents. Obviously, the
user might select any combination of criteria. I have a query that does the
table joins that are needed and displays the appropriate fields.

I would like to be able to create parameters in code and somehow modify the
query to accept these parameters.

Is there a way to do this?

Otherwise, i can always write dynamic sql.

thanks,

craig
 
M

Marshall Barton

Craig said:
I would like to create a form that searchs for incidents. Obviously, the
user might select any combination of criteria. I have a query that does the
table joins that are needed and displays the appropriate fields.

I would like to be able to create parameters in code and somehow modify the
query to accept these parameters.

Is there a way to do this?

Otherwise, i can always write dynamic sql.


Bo way
 
M

Marshall Barton

Craig said:
I would like to create a form that searchs for incidents. Obviously, the
user might select any combination of criteria. I have a query that does the
table joins that are needed and displays the appropriate fields.

I would like to be able to create parameters in code and somehow modify the
query to accept these parameters.

Is there a way to do this?

Otherwise, i can always write dynamic sql.


Create the SQL dynamically.

If the query is being used as the record source for form or
report that you're going to open, then just construct the
OpenForm/OpenReport's WhereCondition argument.
 

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