speakers_86
Registered User.
- Local time
- Today, 18:01
- Joined
- May 17, 2007
- Messages
- 1,919
I know this shouldnt be to hard, but I haven't messed with Access in a while. Heres what I'm trying to do. On parent form open, filter subform based on a control in the subform. I want to do this from an event inside the parent form. I know it would be easier to do it inside the subform, but I want to reuse this subform again inside the same parent form without a filter, or maybe with a different filter. Here's something I was trying:
Aww...before posting this I had a small amount of success. The following code filters, but it shows no records, when it should so a few.
Also, is this code best off in the open event, or is current or something else better?
Aww...before posting this I had a small amount of success. The following code filters, but it shows no records, when it should so a few.
Code:
Private Sub Form_Current()
Me.frmHomeSub.Form.Filter = Forms![frmhome]![frmHomeSub].Form![seropen] = -1
Me.frmHomeSub.Form.FilterOn = True
End Sub
Also, is this code best off in the open event, or is current or something else better?