> DoCmd.OpenForm stDocName, , , "ECRNumber =" & MyVariable
Brian
> Can someone tell me how to open a form to show only records defined by a
> variable? My code works if I type a literal number in but I can't figure out
[quoted text clipped - 8 lines]
>
> DoCmd.OpenForm stDocName, , , "ECRNumber = MyVariable"
Dave Hoder - 23 Feb 2006 21:27 GMT
Thank You Brian!
> > DoCmd.OpenForm stDocName, , , "ECRNumber =" & MyVariable
>
[quoted text clipped - 13 lines]
> >
> > DoCmd.OpenForm stDocName, , , "ECRNumber = MyVariable"