dbSeeChanges Code (1 Viewer)

tucker61

Registered User.
Local time
Today, 01:42
Joined
Jan 13, 2008
Messages
324
I recently moved some of my tables into a SQL server, with a access front end, With this code the LogErrors (Allen Browne) is giving me a error code.

Initially it was error 3622 -"You must use the dbSeeChanges option with OpenRecords", so i added SDSeeChanges, and now getting error 3001 at the same line.

Any advise appreciated.

Code:
  Set db = CurrentDb()
    Set rst = db.OpenRecordset("tblQCLogError", dbSeeChanges)
    rst.AddNew
        rst![ErrNumber] = iErrNumber
        rst![ErrDescription] = Left$(strErrDescription, 255)
        rst![ErrDate] = Now
        rst![CallingProc] = strCallingProc
        rst![UserName] = GetLongName
        rst![Parameters] = Job_ID
    rst.Update
    rst.Close
 

theDBguy

I’m here to help
Staff member
Local time
Today, 01:42
Joined
Oct 29, 2018
Messages
21,473
What is error 3001?
 

Minty

AWF VIP
Local time
Today, 09:42
Joined
Jul 26, 2013
Messages
10,371
How have you defined rst?
Error 3001 is very vague without the description text.
 

Minty

AWF VIP
Local time
Today, 09:42
Joined
Jul 26, 2013
Messages
10,371
As Sonic says you don't have the syntax correct

Set rst = db.OpenRecordset("tblQCLogError", dbOpenDynaset , dbSeeChanges )
 

Users who are viewing this thread

Top Bottom