> Hi All,
>
[quoted text clipped - 9 lines]
> not
> when I call it in code.
You have to list the parameters of query. Modify Your code to something like
this:
Dim q As QueryDef, p As Parameter, rs As Recordset
Set q = CurrentDb.QueryDefs("QueryParam")
For Each p In q.Parameters
p.Value = Eval(p.Name)
Next
Set rs = q.OpenRecordset()
'(...) any recordset operations
Set rs = Nothing
Set q = Nothing
K.P. MVP, Poland
www.access.vis.pl
John Dumay - 21 Jan 2008 21:17 GMT
Hi Krzysztof,
Man what a relief, that worked perfectly.
many thanks for your assistance!
Regards,
John Dumay
> > Hi All,
> >
[quoted text clipped - 25 lines]
> K.P. MVP, Poland
> www.access.vis.pl
Tom van Stiphout - 22 Jan 2008 03:49 GMT
Elegant!
-Tom.
<clip>
>You have to list the parameters of query. Modify Your code to something like
>this:
[quoted text clipped - 11 lines]
>K.P. MVP, Poland
>www.access.vis.pl