ClaraBarton
Registered User.
- Local time
- Yesterday, 23:07
- Joined
- Oct 14, 2019
- Messages
- 661
I have a form that uses one filter and a subform on that form that uses another. I have an intermediate dialog that pulls the Source from the form and the filter from the subform. I want those selected records copied to another table. When I try to create a SQL with both filters I end up with this:
I've tried to use the replace function: Replace (sSource, "; WHERE", "AND") but apparently I don't know how to use the replace function.
Code:
SELECT * FROM qryContacts WHERE (tblSales.SalesID)>0; WHERE ([Ck] Not In (0))