UCLA Lorna
Registered User.
- Local time
- Today, 04:45
- Joined
- Mar 8, 2005
- Messages
- 32
I have a button on a form that queries my table for observations that meet a certain set of conditions, and then updates a field to mark these observations. But I keep getting the error message 'Compile error: Method or data member not found.' I have used the code successfully in a previous database and cannot figure out why it won't work here. Thanks for any suggestions. Here's the code:
Private Sub OK_Click()
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("Appointment Letter JW Q")
With rst
.MoveFirst
Do While Not .EOF
.Edit
![Status] = "08"
![DateMail] = Date
.Update
.MoveNext
Loop
End With
End Sub
Private Sub OK_Click()
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("Appointment Letter JW Q")
With rst
.MoveFirst
Do While Not .EOF
.Edit
![Status] = "08"
![DateMail] = Date
.Update
.MoveNext
Loop
End With
End Sub