I've got the following bit of code I'm trying to work with to get a JOIN to work in like fields in two mdb files with ASP. What I have below just gives me a syntax error on the FROM clause. I'm trying to JOIN the users table in the users.mdb database with the username field in the videolog database.
Set adoConn = Server.CreateObject("ADODB.Connection")
adoConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Mid(Request.ServerVariables("PATH_TRANSLATED"), 1, Len(Request.ServerVariables("PATH_TRANSLATED")) - Len(Request.ServerVariables("PATH_INFO"))) & "\Dbs\users.mdb;Persist Security Info=False"
strSQL = "SELECT * FROM videolog IN 'c:\html\domain\Dbs\videos.mdb' LEFT JOIN users ON videolog.username = users.username"
Set adoConn = Server.CreateObject("ADODB.Connection")
adoConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Mid(Request.ServerVariables("PATH_TRANSLATED"), 1, Len(Request.ServerVariables("PATH_TRANSLATED")) - Len(Request.ServerVariables("PATH_INFO"))) & "\Dbs\users.mdb;Persist Security Info=False"
strSQL = "SELECT * FROM videolog IN 'c:\html\domain\Dbs\videos.mdb' LEFT JOIN users ON videolog.username = users.username"