Can someone please look at my code and see what I am missing to get the error 91, I just upgrade this database to 2007:
Sub SLOG(Msg As String)
'If Forms!frmSYNCH!optLog = False Then Exit Sub
Log.AddNew
Log!LogDate = DATE
Log!LogTime = Time()
Log!Msg = Msg
Log.Update
MsgCount = MsgCount + 1
End Sub
Sub Clearlog()
Set Log = DB.OpenRecordset("tblSynchLog")
Do Until Log.EOF
Log.Delete
Log.MoveNext
Loop
MsgBox "LOG CLEARED"
End Sub