sambo
Registered User.
- Local time
- Today, 07:24
- Joined
- Aug 29, 2002
- Messages
- 289
I would like to loop through all of the records on a subform as soon as a button on the MainForm is clicked.
Something like this:
I am trying to look at the status of each PassFail Field in my subform and manipulate that field based on the Yes/No Value.
Suggestions..
Something like this:
Code:
Private Sub PassBut_Click()
'MsgBox Forms!frmCategory!frmSubCategorySub.Form.CurrentRecord & vbCrLf & _
Forms!frmCategory!frmSubCategorySub!txtCategory & vbCrLf & "Pass"
With Forms!frmCategory!frmSubCategorySub.Form
DoCmd.GoToRecord , , acFirst
Do
If Forms!frmCategory!frmSubCategorySub!PassFail = -1 Then
MsgBox Forms!frmCategory!frmSubCategorySub!txtCategory & " Pass"
Else
MsgBox Forms!frmCategory!frmSubCategorySub!txtCategory & " Fail"
End If
DoCmd.GoToRecord , , acNext
Loop
End With
End Sub
I am trying to look at the status of each PassFail Field in my subform and manipulate that field based on the Yes/No Value.
Suggestions..