M
mmatzke
I am using command buttons in a sub form to navigate within records.
The sub form is date controlled
Command buttons move forward one day, back one day, or come back to present
day
I am stuck on the command button that brings us back to the present day
The code I am trying to use is:
Private Sub Command17_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "Date()=" & Me![Date]
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Note: The main form is [Aspect Data], the sub where the command button is
on is [Aspect Data S1].
The sub form is date controlled
Command buttons move forward one day, back one day, or come back to present
day
I am stuck on the command button that brings us back to the present day
The code I am trying to use is:
Private Sub Command17_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "Date()=" & Me![Date]
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Note: The main form is [Aspect Data], the sub where the command button is
on is [Aspect Data S1].