P
Phil
I am writing a program for a form so that someone can go back and correct
erronous data. I want to be able to select on a date and then a specific
machine. It appears the two selection criteria are acting independently ( I
want to narrow it down to a day and then a specific machine on that day, an
"AND" function I believe.) Below is the VBA code if that helps. (I am
working with ACCESS not VBA)
Option Compare Database
Private Sub Combo10_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Date] = #" & Format(Me![Combo10], "mm\/dd\/yyyy") & "#"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo12_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MachineDesignator] = '" & Me![Combo12] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thanks.
Phil
erronous data. I want to be able to select on a date and then a specific
machine. It appears the two selection criteria are acting independently ( I
want to narrow it down to a day and then a specific machine on that day, an
"AND" function I believe.) Below is the VBA code if that helps. (I am
working with ACCESS not VBA)
Option Compare Database
Private Sub Combo10_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Date] = #" & Format(Me![Combo10], "mm\/dd\/yyyy") & "#"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo12_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MachineDesignator] = '" & Me![Combo12] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thanks.
Phil