cleith
Programmer
- Sep 27, 2002
- 22
Hi,
Has anyone had this problem. This query works in Access 2000 but fails with ADO in VB6. Doesn't like the '/' in the field name.
Is there a way to escape the '/'. Select * works fine, returns all fields.
Driver is 3.00.00
Thanks,
Charles
Dim i%, tSQL$
tSQL = "SELECT WorkOrder, [S/OCustNumber] FROM WO1_WorkOrderMaster" ' WHERE (((WO1_WorkOrderMaster.WorkOrder)='W73380'))"
cn.Open "Driver={MAS 90 32-Bit ODBC Driver};Directory=f:\MAS90\;UID=UID;PWD=PWD;Company=ABC"
rs.Open tSQL, cn
Has anyone had this problem. This query works in Access 2000 but fails with ADO in VB6. Doesn't like the '/' in the field name.
Is there a way to escape the '/'. Select * works fine, returns all fields.
Driver is 3.00.00
Thanks,
Charles
Dim i%, tSQL$
tSQL = "SELECT WorkOrder, [S/OCustNumber] FROM WO1_WorkOrderMaster" ' WHERE (((WO1_WorkOrderMaster.WorkOrder)='W73380'))"
cn.Open "Driver={MAS 90 32-Bit ODBC Driver};Directory=f:\MAS90\;UID=UID;PWD=PWD;Company=ABC"
rs.Open tSQL, cn