C
Chris O''''Neill
The answer to this is probably so basic I'll want to bang my head against a
wall when it's answered, but right now I'm about ready to throw myself in
front of a bus so a bit of head banging would be preferable.
I'm trying to load a form from a public function. The calling form passes
strFormName, strFieldname, and NewData to the function. Here's the code I've
been wrestling with:
strCriteria = "[" & strFieldName & "]" & " = " & NewData
DoCmd.OpenForm strFormName, , , strCriteria, , acDialog
When this code runs, I get an input box with "Enter Parameter Value" as the
title and NewData as the prompt. Of course, what I want is the form to pop
up with the NewData record active.
What am I doing wrong???? Thanks for any help provided!
Regards, Chris
wall when it's answered, but right now I'm about ready to throw myself in
front of a bus so a bit of head banging would be preferable.
I'm trying to load a form from a public function. The calling form passes
strFormName, strFieldname, and NewData to the function. Here's the code I've
been wrestling with:
strCriteria = "[" & strFieldName & "]" & " = " & NewData
DoCmd.OpenForm strFormName, , , strCriteria, , acDialog
When this code runs, I get an input box with "Enter Parameter Value" as the
title and NewData as the prompt. Of course, what I want is the form to pop
up with the NewData record active.
What am I doing wrong???? Thanks for any help provided!
Regards, Chris