These subforms are driving me batty, My subform pulls information specific to an Account Number defined in:
[SubFormName].Form.FilterOn = False
[SubFormName].Form.Filter = "[Account Number] = " & AccountNumber & ""
[SubFormName].Form.FilterOn = True
[SubFormName].Form.Refresh
The filter works perfect and I can add new records, BUT the Account Number field in the subform stays blank unless filled in manually.
How can I set this field to automatically fill in with the AccountNumber variable?
[SubFormName].Form.FilterOn = False
[SubFormName].Form.Filter = "[Account Number] = " & AccountNumber & ""
[SubFormName].Form.FilterOn = True
[SubFormName].Form.Refresh
The filter works perfect and I can add new records, BUT the Account Number field in the subform stays blank unless filled in manually.
How can I set this field to automatically fill in with the AccountNumber variable?