I have looked and tried everything I could find in the books, but I can't find any way to pass a VB6 variable to a SQL statement. I'm getting a lot of syntax errors.
Example: "SELECT Name, Address FROM Customers WHERE PhoneNum =" "'"Text1.Text"'""
I'm hoping to fill some other Textboxes on the form with the information that the results of the variable bring back. I'm using ADODB code. (Not binding the Textboxes)
Example: "SELECT Name, Address FROM Customers WHERE PhoneNum =" "'"Text1.Text"'""
I'm hoping to fill some other Textboxes on the form with the information that the results of the variable bring back. I'm using ADODB code. (Not binding the Textboxes)