RE: Find and Find Next
- From: Steve McLeod <SteveMcLeod@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Nov 2007 14:48:04 -0800
I'm assuming you have a continuous form with a bunch of records showing.
In a command button click event have the following:
With Me.RecordsetClone
.MoveFirst
Do Until .EOF
If whatever Then
Me.BookMark = .BookMark
control.SetFocus
MsgBox etc.
Exit Sub
End If
.MoveNext
Loop
End With
--
Pictou
"Rob" wrote:
I have a form that pulls multiple records based on a combo box and the.
records are displayed in the form. The user then proceeds to enter data. I
want to set up as part of my closing of the form a find record that matches
certain criteria and the cursor goes to that record. The criteria is
"ChkUnaccept = Yes and TxtOccur = 0". The user corrects the error and then
clicks the close button to see if there are any others. If there are then
the cursor goes to the next record where this occurs until it doesn't find
any more and then a macro is run. I just need the code to have the record
found until it goes to the End of the form and finds no records. Please
Help!!
- Follow-Ups:
- RE: Find and Find Next
- From: Rob
- RE: Find and Find Next
- Prev by Date: Input Mask vs. Format Property
- Next by Date: Re: open a subform or hide it based on query results
- Previous by thread: Input Mask vs. Format Property
- Next by thread: RE: Find and Find Next
- Index(es):
Relevant Pages
|