jammin140900
Registered User.
- Local time
- Today, 15:23
- Joined
- Aug 18, 2008
- Messages
- 35
Hi all,
I have a form and a subform, with a button on the form to select the current subform (frmEvents) ChecklistID and open another form (frmReceipts) where the ChecklistID's match. (This field is common to both tables where ChecklistID is a one to many relationship between frmEvents and frmReceipts respectively.
That all works great. The form frmReceipts opens with the current ChecklistID that was displayed in the frmEvents area. The problem is that the filter only seems to apply to open the form. Once it is open, ChecklistID for any new entry in frmReceipts = 0 and not the same ChecklistID.
I can only think that you require more code to keep the filter on so that any entries in frmReceipts will still hold the same ChecklistID that it opened with.
Anyone have any ideas of the code? Is it something like DoCmd.ApplyFilter......(something like that?) .Perhaps it is placed on a particular property such as "On load" of the form? Not sure..
Help very appreciated. Thank you,
Jammin
I have a form and a subform, with a button on the form to select the current subform (frmEvents) ChecklistID and open another form (frmReceipts) where the ChecklistID's match. (This field is common to both tables where ChecklistID is a one to many relationship between frmEvents and frmReceipts respectively.
That all works great. The form frmReceipts opens with the current ChecklistID that was displayed in the frmEvents area. The problem is that the filter only seems to apply to open the form. Once it is open, ChecklistID for any new entry in frmReceipts = 0 and not the same ChecklistID.
I can only think that you require more code to keep the filter on so that any entries in frmReceipts will still hold the same ChecklistID that it opened with.
Anyone have any ideas of the code? Is it something like DoCmd.ApplyFilter......(something like that?) .Perhaps it is placed on a particular property such as "On load" of the form? Not sure..
Help very appreciated. Thank you,
Jammin