We have a form in our Discipline database that is used to update (attendance and what they did) our "Saturday School" (You're bad .. you go to school on Saturday)
We have a combo that is populated by a query that gives unique dates of all Saturdays where updates are required.
The form is based on a query of all Saturday school incidents that have not been updated. Value in attendance field is 0.
In our case the combo has two dates, once a date is picked then the appropriate code runs:
'Get the date and find the record
Private Sub fPickDate_AfterUpdate()
Dim matchset As Object
Set matchset = Me.Recordset.Clone
matchset.FindFirst "[StartDate] = #" & Format(Me![fPickDate], "mm\/dd\/yyyy") & "#"
If Not matchset.EOF Then Me.Bookmark = matchset.Bookmark
End Sub
Well that's fine ... it does find the location of the records, but we still see the records that do not match the date.
We did try setting the query's criteria on the date from the form itself. That gives me nothing at all. (I suspected that)
Do I know enough to be dangerous?
Thnks
Telestar
We have a combo that is populated by a query that gives unique dates of all Saturdays where updates are required.
The form is based on a query of all Saturday school incidents that have not been updated. Value in attendance field is 0.
In our case the combo has two dates, once a date is picked then the appropriate code runs:
'Get the date and find the record
Private Sub fPickDate_AfterUpdate()
Dim matchset As Object
Set matchset = Me.Recordset.Clone
matchset.FindFirst "[StartDate] = #" & Format(Me![fPickDate], "mm\/dd\/yyyy") & "#"
If Not matchset.EOF Then Me.Bookmark = matchset.Bookmark
End Sub
Well that's fine ... it does find the location of the records, but we still see the records that do not match the date.
We did try setting the query's criteria on the date from the form itself. That gives me nothing at all. (I suspected that)
Do I know enough to be dangerous?
Thnks
Telestar