G
Gary Dolliver
Hi all,
I am using a DoCmd.OpenForm command from form1, and attempting to have form2
open with the criteria entered on form1. On form1, I have a text field,
titled LastName, where the entry goes. When a button is pushed on form1, I
want form2 to open and the where condition in the OpenForm to pass the field
from form1 into the where condition. I am using the following:
DoCmd.OpenForm "INQUIRY_MAIN_View", , , "ShipTo_LName=" & LastName.Value
What is happening is when I click the button, it brings up an entry box with
the value I entered into the LastName field as the title. Instead, I would
just like the form to open. I have tried other formats, setting variables,
but have not had any luck. Help please! Thanks!
-gary
I am using a DoCmd.OpenForm command from form1, and attempting to have form2
open with the criteria entered on form1. On form1, I have a text field,
titled LastName, where the entry goes. When a button is pushed on form1, I
want form2 to open and the where condition in the OpenForm to pass the field
from form1 into the where condition. I am using the following:
DoCmd.OpenForm "INQUIRY_MAIN_View", , , "ShipTo_LName=" & LastName.Value
What is happening is when I click the button, it brings up an entry box with
the value I entered into the LastName field as the title. Instead, I would
just like the form to open. I have tried other formats, setting variables,
but have not had any luck. Help please! Thanks!
-gary