Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I'm trying to use this code

Status
Not open for further replies.

Watermelon

Programmer
Apr 16, 2001
68
US
Hi,

I'm trying to use this code below to open a form with that where clause criteria but I keep getting a message that the form has closed. Does anyone know why?


DoCmd.OpenForm "PartNumbersSearch", , , "[Part] = " & Forms!PartDescriptionsSearch!txtKeyword & ""

Thanks a lot,
TM
 
A little bizarre... try:

DoCmd.OpenForm "PartNumbersSearch", , , "[Part] = '" & Forms!PartDescriptionsSearch!txtKeyword & "'"

Forms!PartDescriptionsSearch is hopefully still open... i.e. the form you are firing this from? :)
Gord
ghubbell@total.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top