Having trouble connection to an Access table to update a specific record. Here's what I'm trying (most recently):
Set rstUser= New ADODB.Recordset
SQLst = "SELECT * FROM USER where PID=2"
rstUser.Open SQLst
If rstUser.EOF Then
MsgBox ("Add New User"
rstUser.AddNew
Else
MsgBox ("Update Existing User"
rstUser.Edit
End If
I get an error that says "Method or data member not found". I've tried ".EditMode" but that isn't it either.
Any suggestions?
Thanks in advance,
~L
Set rstUser= New ADODB.Recordset
SQLst = "SELECT * FROM USER where PID=2"
rstUser.Open SQLst
If rstUser.EOF Then
MsgBox ("Add New User"
rstUser.AddNew
Else
MsgBox ("Update Existing User"
rstUser.Edit
End If
I get an error that says "Method or data member not found". I've tried ".EditMode" but that isn't it either.
Any suggestions?
Thanks in advance,
~L