S
Steff
Good afternoon and thanks in advance for any advice.
I'm trying to create a complicated query in MSQuery which prompts the
user for certain parameters (eg product group, item code etc) and
extracts the data from flat files on an SQL server database via ODBC.
I have already discovered the limitations of MSQuery (my query joins
multiple tables and there is a left outer join involved!) and have
followed the advice already posted on this forum to create a stored
procedure on my SQL server database, and reference the stored procedure
from within my query, including input parameters.
Everything works fine up until the point that I try to give meaningful
labels to my parameter prompts (instead of just Parameter 1, Parameter
2, Parameter 3 etc). Because the query can't be represented
graphically, I can't do what I usually do and enter the label within
the [] on the criteria tables. When I try to do it from the SQL
screen, I just get errors.
I can do it by embedding the query in an XL spreadsheet and adding the
Prompts to the parameters on the actual spreadsheet, but my users will
probably want to run multiple queries on the same spreadsheet (several
items, customers etc), and for the life of me, I cannot work out how to
embed the prompts into the query itself.
Please tell me it is something simple that I have missed!
I'm trying to create a complicated query in MSQuery which prompts the
user for certain parameters (eg product group, item code etc) and
extracts the data from flat files on an SQL server database via ODBC.
I have already discovered the limitations of MSQuery (my query joins
multiple tables and there is a left outer join involved!) and have
followed the advice already posted on this forum to create a stored
procedure on my SQL server database, and reference the stored procedure
from within my query, including input parameters.
Everything works fine up until the point that I try to give meaningful
labels to my parameter prompts (instead of just Parameter 1, Parameter
2, Parameter 3 etc). Because the query can't be represented
graphically, I can't do what I usually do and enter the label within
the [] on the criteria tables. When I try to do it from the SQL
screen, I just get errors.
I can do it by embedding the query in an XL spreadsheet and adding the
Prompts to the parameters on the actual spreadsheet, but my users will
probably want to run multiple queries on the same spreadsheet (several
items, customers etc), and for the life of me, I cannot work out how to
embed the prompts into the query itself.
Please tell me it is something simple that I have missed!