
November 30th, 2004, 09:21 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 25
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Re:Passing parameters to different query
Hi,
I have a simple suggestion that might come in handy in passing parameters to your query. First, you must use relationship table like for example [title] from book table is related to [title] from author table. Be sure that they both have the same data type.
Once you have the link between this two tables, book table and author table. You can create a joint query using book table and author table wherein your [author field] from author table can be displayed based on your [title field] from book table.
In reports, you can also use the query like [Enter Author] your criteria in author field of your author table, then in report header page. In this example, insert this ="Author name " & [Enter Author] this will concatenate the text "Author name" and [your parameter]
Tim
Quote: | Originally Posted by meshell Hello,
I would like to pass the same several paramaters to multiple queries and reports. The parameters are the same for all reports and queries and only change every several weeks. I do not want the user to pass the parameters. Rather than change the criteria within each individual query and report, I have stored the parameter values in a table. Each query or report includes the parameter table. This works fine in one report where the remaining tables are joined with inner joins, and the parameter table is not joined to the other tables. However method does not work in a query that uses outer joins. The addition of the "unjoined" parameter table results in a SQL error.
Is this an acceptable method of passing parameters to several queries? Can you suggest a solution to my problem, or a better method of passing parameters?
Thank you
Bob- |
|