lexi0088
Technical User
- Sep 7, 2004
- 49
I have a field in a subform that updates every time you click in it. However, I would like every record in the subform to update when I perform an action in my main form. I have no experience with loops in Access so I am totally lost. Any help would be appreciated.
Main Form: [Chargeback]
Sub Form: [Chargeback Details]
Field that needs to update:[NDC]
Dim rs As ADODB.Recordset
Set rs = Me![Chargeback Details].Form
rs.MoveFirst
Do While Not rs.EOF
Forms![Chargeback]![Chargeback Details]![NDC].SetFocus
rs.MoveNext
Loop
when I try to run this code I get a type mismatch error
Thank you in advance for your help
Main Form: [Chargeback]
Sub Form: [Chargeback Details]
Field that needs to update:[NDC]
Dim rs As ADODB.Recordset
Set rs = Me![Chargeback Details].Form
rs.MoveFirst
Do While Not rs.EOF
Forms![Chargeback]![Chargeback Details]![NDC].SetFocus
rs.MoveNext
Loop
when I try to run this code I get a type mismatch error
Thank you in advance for your help