A
Anita
I'm trying to use the Find method for the first time and am getting run-time
error 3001. (Recent post from a different user did not solve my problem.)
Any idea what I'm doing wrong here?
Set conEvent = CurrentProject.Connection
Set rstEvent = New Recordset
With rstEvent
.Source = "Select * from Event"
.ActiveConnection = conEvent
.LockType = adLockOptimistic
.Open
.MoveLast
.Find "Event Type ='24'", , adSearchBackward
intEventId = ![Event ID].Value
End With
error 3001. (Recent post from a different user did not solve my problem.)
Any idea what I'm doing wrong here?
Set conEvent = CurrentProject.Connection
Set rstEvent = New Recordset
With rstEvent
.Source = "Select * from Event"
.ActiveConnection = conEvent
.LockType = adLockOptimistic
.Open
.MoveLast
.Find "Event Type ='24'", , adSearchBackward
intEventId = ![Event ID].Value
End With