I am working on a code for an appointment book using access 2000 and VB6. I was using this statement to call the information from my database to the interface
Data3.RecordSource = "Select LastName1, FirstName1, PhoneNumber1, AlternatePhoneNumber1, Relationship1, LastName2, FistName2, PhoneNumber2, AlternatePhone2, Relationship2 from [contact information] where [social security] = '" + txtSSNumber.Text + "'"
Data3.Refresh
and it is giving me the run time error 3061 Too few parameters. Expected 2.
Does anyone know what I am doing incorrectly?
Data3.RecordSource = "Select LastName1, FirstName1, PhoneNumber1, AlternatePhoneNumber1, Relationship1, LastName2, FistName2, PhoneNumber2, AlternatePhone2, Relationship2 from [contact information] where [social security] = '" + txtSSNumber.Text + "'"
Data3.Refresh
and it is giving me the run time error 3061 Too few parameters. Expected 2.
Does anyone know what I am doing incorrectly?