Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select error

Status
Not open for further replies.

elly00

Technical User
Jun 30, 2011
69
IT
Hi

I've a select like this:
ObjAdoDbConnection_13.Open IstructionConnectionDatabase_13
ObjAdoDbRecordSet_13.Source = "SELECT * FROM MYTABLE WHERE CODART='"&CODART&"'"
ObjAdoDbRecordSet_13.ActiveConnection = ObjAdoDbConnection_13
ObjAdoDbRecordSet_13.Open

The problem is that if the codart have a ba on it (for example CR/123) the select doesn't work
What can I do in this case?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top