jason_kelly
01-31-2011, 11:46 AM
Hi There,
I really need your help.
I cannot seem to be able to search both my tbl_active and tbl_inactive tables in my MDB file.
When I use the following code, it just message boxes me back all the records contained in tbl_active and not tbl_inactive.
Set cn = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
cn.Open "DBQ=" & dbPath & ";Driver={Microsoft Access Driver (*.mdb)};"
mySQL = " SELECT * FROM tbl_active, tbl_inactive "
rs.Open mySQL, cn, 1, 1
Do While Not rs.EOF
MsgBox rs(0)
rs.MoveNext
Loop
any help with this is greatly appreciated.
Thanks very much.
Jay
I really need your help.
I cannot seem to be able to search both my tbl_active and tbl_inactive tables in my MDB file.
When I use the following code, it just message boxes me back all the records contained in tbl_active and not tbl_inactive.
Set cn = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
cn.Open "DBQ=" & dbPath & ";Driver={Microsoft Access Driver (*.mdb)};"
mySQL = " SELECT * FROM tbl_active, tbl_inactive "
rs.Open mySQL, cn, 1, 1
Do While Not rs.EOF
MsgBox rs(0)
rs.MoveNext
Loop
any help with this is greatly appreciated.
Thanks very much.
Jay