Nothing <me@you.com> wrote in news:42**********@127.0.0.1:
Anyone know how to make the LIKE command work in the following
OpenForm command?
DoCmd.OpenForm "frmSearchResults", , , "[bbid#] = '" & bbid &
"'"
This will work if I type the whole bid #, but if I type part
of it it will not return any results, even though I know it
should.
Michael Charney
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
To type in the first part,
DoCmd.OpenForm "frmSearchResults", , , "[bbid#] like '" & bbid &
"'*"
To type in the last part,
DoCmd.OpenForm "frmSearchResults", , , "[bbid#] like *'" & bbid &
"'"
To type in the middle part,
DoCmd.OpenForm "frmSearchResults", , , "[bbid#] like *'" & bbid &
"'*"
Or if you want to put the wildcards manually
DoCmd.OpenForm "frmSearchResults", , , "[bbid#] like '" & bbid &
"'"
--
Bob Quintal
PA is y I've altered my email address.