J
JR_06062005
I'm trying to open a table which contains a password using the
ADODB.Recordset feature. For some reason the following code comes back with
the error - (Run-time error -'2137217900 (80040e14)' Invalid SQL Statement;
expected DELETE, INSERT or UPDATE.):
Dim rstPassword As New ADODB.Recordset
Dim con As New ADODB.Connection
Dim stPassword As String
Dim ccn As New ADODB.Connection
Set ccn = CurrentProject.Connection
rstPassword.Open "tbl Password", ccn, adOpenKeyset, adLockOptimistic
"tbl Password" is a table in the database. Any help is appreciated
ADODB.Recordset feature. For some reason the following code comes back with
the error - (Run-time error -'2137217900 (80040e14)' Invalid SQL Statement;
expected DELETE, INSERT or UPDATE.):
Dim rstPassword As New ADODB.Recordset
Dim con As New ADODB.Connection
Dim stPassword As String
Dim ccn As New ADODB.Connection
Set ccn = CurrentProject.Connection
rstPassword.Open "tbl Password", ccn, adOpenKeyset, adLockOptimistic
"tbl Password" is a table in the database. Any help is appreciated