
Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Thanks Rick. I did put in a literal as you suggested and it worked like a
charm. So then I looked again and low and behold, the variable names are
different in my code (I am passing STcriteria but assigning a value to
STRcriteria). ARGH!
Thanks for the sanity!!
>> I also tried "Invoice.recno" to no avail
>
[quoted text clipped - 4 lines]
>
> strCriteria = "Recno = 123"
Rick Brandt - 18 Jan 2006 19:04 GMT
> Thanks Rick. I did put in a literal as you suggested and it worked
> like a charm. So then I looked again and low and behold, the
> variable names are different in my code (I am passing STcriteria but
> assigning a value to STRcriteria). ARGH!
>
> Thanks for the sanity!!
Ah, that's why you always want OPTION EXPLICIT at the top of your modules.
If you spell a variable wrong it will catch it with Option Explicit, but
won't otherwise.

Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com