I need help in joining two SQL select statement.
it works if I don't add the and Etc....
But I need the sql to do both. Please edit the following for me.
I need records only if the name and phone number is the same as my text field.
Thanks, Kay
stcnQL2 = "SELECT * FROM tappointments where custname=" & "'" + Text12.Text + "'" And "SELECT * FROM tappointments where custphone=" & "'" + Text13.Text + "'"
it works if I don't add the and Etc....
But I need the sql to do both. Please edit the following for me.
I need records only if the name and phone number is the same as my text field.
Thanks, Kay
stcnQL2 = "SELECT * FROM tappointments where custname=" & "'" + Text12.Text + "'" And "SELECT * FROM tappointments where custphone=" & "'" + Text13.Text + "'"