G
Guest
Hello,
I have a problem with the Bookmark procedure on a form ("Appt") with a
calendar control.
The date field is a combobox[cboStartDate] which opens to todays date or on
click
displays a calendar control from which the user selects a date, that value
is then
passed to [cboStartDate].
That procedure works fine, I would like to add a Bookmark procedure so the
appropriate record is selected when the user updates the [cboStartDate].
I've added the following code but no event is triggered, I do not get an
error message.
Private Sub cboStartDate_AfterUpdate()
Me.RecordsetClone.FindFirst "[EventsID] = " & Me![cboStartDate]
'EventsID is the primary key field in the underlying query.
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
I've also changed the primary key field to a Date/Time column in the
underlying
table (and changed Bookmark argument) but that made no difference.
Any help would be greatly appreciated.
Paul3rd
I have a problem with the Bookmark procedure on a form ("Appt") with a
calendar control.
The date field is a combobox[cboStartDate] which opens to todays date or on
click
displays a calendar control from which the user selects a date, that value
is then
passed to [cboStartDate].
That procedure works fine, I would like to add a Bookmark procedure so the
appropriate record is selected when the user updates the [cboStartDate].
I've added the following code but no event is triggered, I do not get an
error message.
Private Sub cboStartDate_AfterUpdate()
Me.RecordsetClone.FindFirst "[EventsID] = " & Me![cboStartDate]
'EventsID is the primary key field in the underlying query.
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
I've also changed the primary key field to a Date/Time column in the
underlying
table (and changed Bookmark argument) but that made no difference.
Any help would be greatly appreciated.
Paul3rd