sam1fletcher
Registered User.
- Local time
- Today, 20:54
- Joined
- Jan 28, 2013
- Messages
- 40
I am trying to find a certain record in my record set then grab is ID number and assign it to a variable.
when i set up my record set i get an error "Operation is not supported for this typ of object"
Code:
Any Ideas??
when i set up my record set i get an error "Operation is not supported for this typ of object"
Code:
Code:
Dim schID As Integer
Dim Schools As DAO.Database
Dim sch As DAO.Recordset
Set Schools = CurrentDb
Set sch = Schools.OpenRecordset("tblSchool")
With sch
.FindFirst "SchoolID = 968"
If .NoMatch Then
MsgBox ("No Records Found!")
.MoveFirst
Else
schID = .AbsolutePosition
End If
End With
Any Ideas??