Hi,
I want to specify the query that will be used in a report by giving options
in a form.
then with a command button the following will happen:
-------------
QRY= "SELECT * FROM registration"
DoCmd.OpenReport "report", acViewPreview, , QRY
-------------
I have simplified the query for this example but it doesn't work with this
either...
Lets say I have only one field to show in my report: personal ID --> pid
I still get #Name?
Can anyone help me put this QRY right so it will work with the OpenReport
command and
setting my QRY as a recordsource(I guess it should be done this way)
Thanks!!!!