It would probably be simpler strictly to use:
Set qryD = db.Querydefs("qryDetailQuery")
qryD.parameters("patientnbr") = 4197
qryD.Parameters("filterdate") = _
FormatDateTime(#1/1/1900#, vbShortDate)

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> Private Sub btnCreateInvoice_click
> Dim db as database
[quoted text clipped - 23 lines]
> Eval(Param.name) is not evaluating to the variables I have. Can anyone
> help?
Ron H - 16 Jan 2006 11:31 GMT
Thanks Doug! Am I using Eval(param.name) wrong in my code? Running it with
an extra line in the For Each loop shows Param.Name has the brackets around
it. How is Eval supposed to be used?
> It would probably be simpler strictly to use:
>
[quoted text clipped - 30 lines]
>> Eval(Param.name) is not evaluating to the variables I have. Can anyone
>> help?