lfazenbaker
New member
- Local time
- Today, 06:30
- Joined
- Sep 16, 2005
- Messages
- 7
Someone please tell me what is wrong with this code? (I have already defined db_file earlier in the sub.)
' Open a connection.
Set conn = New ADODB.Connection
conn.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & db_file & ";" & _
"Persist Security Info=False"
strSQL = "SELECT * FROM Families"
conn.Open
' Open Families Table with a cursor that allows updates
Set rs = New ADODB.Recordset
rs.Open strSQL, conn, adOpenKeyset, adLockOptimistic, adCmdTable
This is the error I get. "Microsoft JET Database Engine --> Syntax Error in FROM Clause"
Thanks!
' Open a connection.
Set conn = New ADODB.Connection
conn.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & db_file & ";" & _
"Persist Security Info=False"
strSQL = "SELECT * FROM Families"
conn.Open
' Open Families Table with a cursor that allows updates
Set rs = New ADODB.Recordset
rs.Open strSQL, conn, adOpenKeyset, adLockOptimistic, adCmdTable
This is the error I get. "Microsoft JET Database Engine --> Syntax Error in FROM Clause"
Thanks!