I'm using the following code for the Click event of the cmdNext button on the startup form of the attached mdb in order to get the record selector in the Prev1 subform to move to the date corresponding to the one selected by clicking the cmdNext button but when I click the cmdNext button I get the error message: "Invalid reference to the bookmark property in the expression".
<pre>Private Sub cmdNext_Click()
Cdata = Cdata + 1
Dim rst As Object
On Error GoTo Err_cmdNext_Click
Set rst = Me.Eventi.Form.Recordset.Clone
rst.FindFirst "[Giorno] >= #" & Format(Me!Cdata, "mm/dd/yyyy") & "#"
If Not rst.EOF Then Me.Bookmark = rst.Bookmark
Exit_cmdNext_Click:
Set rst = Nothing
Exit Sub
Err_cmdNext_Click:
MsgBox Err.Description
Resume Exit_cmdNext_Click
End Sub</pre>




