L'apprentis
Redcifer
- Local time
- Today, 11:22
- Joined
- Jun 22, 2005
- Messages
- 177
I have witten a code in the close event of a "Primary" form that would update a Combo boxe on a "secondary" form only if the "secondary" form is open.
ie:
This code keeps giving me an error, is anybody has got any idea why?
Thanks in advance.
ie:
Code:
Private Sub Form_Close()
If Forms!frmEnquiry.Open Then
Forms!frmEnquiry!CboCustomer.Requery
Else
DoCmd.Close
End If
End Sub
This code keeps giving me an error, is anybody has got any idea why?
Thanks in advance.