I am using VB6 and having a lot of truble<br>
getting the syntex for the following peace of code<br>
<br>
aib = "D H L"<br>
Dim dbs As Database, rst As Recordset<br>
Set dbs = OpenDatabase("V:\throp\thropPCS.mdb")<br>
Set rst = dbs.OpenRecordset("SELECT customerlist FROM customerlist, where customerlist = [aib] ;")<br>
<br>
the code works fine when used with a const <br>
ie, Where customerlist = 'D H L' ;") but not with a veriable
getting the syntex for the following peace of code<br>
<br>
aib = "D H L"<br>
Dim dbs As Database, rst As Recordset<br>
Set dbs = OpenDatabase("V:\throp\thropPCS.mdb")<br>
Set rst = dbs.OpenRecordset("SELECT customerlist FROM customerlist, where customerlist = [aib] ;")<br>
<br>
the code works fine when used with a const <br>
ie, Where customerlist = 'D H L' ;") but not with a veriable