C
charles.kendricks
I have a form that is populated using this parameter query:
SELECT tblCustomer.*
FROM tblCustomer
WHERE (((tblCustomer.LName)=[Please Enter Last Name]));
I want to use VBA to accomplish the same thing...I tried:
Dim strLName As String
strLName = InputBox("What is the last name", "Name?")
Me.CustCriteria = "Search for customers with the last name of " &
Me.LName
DoCmd.OpenForm "frmCustDataInput", , , "(((tblCustomer.LName)=" &
strLName & "))"
I've tried several different derivitives of the WHERE clause with no
success thus far...What am I doing wrong?
SELECT tblCustomer.*
FROM tblCustomer
WHERE (((tblCustomer.LName)=[Please Enter Last Name]));
I want to use VBA to accomplish the same thing...I tried:
Dim strLName As String
strLName = InputBox("What is the last name", "Name?")
Me.CustCriteria = "Search for customers with the last name of " &
Me.LName
DoCmd.OpenForm "frmCustDataInput", , , "(((tblCustomer.LName)=" &
strLName & "))"
I've tried several different derivitives of the WHERE clause with no
success thus far...What am I doing wrong?