S
Savvoulidis Iordanis
Access 2000
I use a parameterized query to fill a form or subform with records from a
back end DB
in datasheet mode.
The form/subfrm initially does not have any recordsource set.
I manually set it in form's open after I fill the parms of the query and run
it.
qdf.parameters(0).value= xxx
set rst=qdf.openquery...
set me.recordset = rst
I do that in order not to get the ugly Access parameter window
All fine up to now.
When I use Access sort toolbar button, I now get the ugly Access parameter
window. Why?
The problem does not appear when I set the form's recordsouce directly.
But I want to have queries to get the records, not SQL strings that are set
to the recordsource of the form
How can I overcome this?
I use a parameterized query to fill a form or subform with records from a
back end DB
in datasheet mode.
The form/subfrm initially does not have any recordsource set.
I manually set it in form's open after I fill the parms of the query and run
it.
qdf.parameters(0).value= xxx
set rst=qdf.openquery...
set me.recordset = rst
I do that in order not to get the ugly Access parameter window
All fine up to now.
When I use Access sort toolbar button, I now get the ugly Access parameter
window. Why?
The problem does not appear when I set the form's recordsouce directly.
But I want to have queries to get the records, not SQL strings that are set
to the recordsource of the form
How can I overcome this?