J
John
Hi
I have a parameterised query for a report like this;
PARAMETERS Event_ID Short;
SELECT DISTINCTROW Events.[Event ID], ...
FROM Events
WHERE (((Events.[Event ID])=[Event_ID]));
Now I am trying to run the report while passing the parameter value like
this;
docmd.OpenReport "My Report",acViewPreview,,"[Event_ID] = 6736"
it does not work and the parameter entry dialog still appears to read a
value manually. How can I make it work via code?
Thanks
Regards
I have a parameterised query for a report like this;
PARAMETERS Event_ID Short;
SELECT DISTINCTROW Events.[Event ID], ...
FROM Events
WHERE (((Events.[Event ID])=[Event_ID]));
Now I am trying to run the report while passing the parameter value like
this;
docmd.OpenReport "My Report",acViewPreview,,"[Event_ID] = 6736"
it does not work and the parameter entry dialog still appears to read a
value manually. How can I make it work via code?
Thanks
Regards