Link to home
Start Free TrialLog in
Avatar of altecjjf
altecjjf

asked on

SQL and Visual Basic (VB 5)

DataCustomer.RecordSource = "Select * from Customers where Customer_ID = " & UserInputByCustomerID
DataCustomer.Refresh

This works for a number, but not for text. How can i get this SQL to work from a Access database to access a record for somebody's last name.  
ASKER CERTIFIED SOLUTION
Avatar of Dr. Kamal Mehdi
Dr. Kamal Mehdi
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of altecjjf
altecjjf

ASKER

The SQL is correct now, but i get a data mismatch error. I think i might be able to figure it out, but do you know what it could be? Thanks Again