Deverry
Registered User.
- Local time
- Tomorrow, 01:22
- Joined
- Aug 1, 2002
- Messages
- 10
Hi,
I have created a custom dialog box which is to replace query parameter popups. Query results in 3 pop up boxes and I'd like the CDB to replace same with one pop up box where all criteria may be entered.
I believe this would have to be coded but I am way over my head in this area having never written any before.
The query as it stands now works perfectly and the SQL for the optional criteria is as follows:
WHERE ((InStr([Which Vendor/s?, Blank = All],[Vendor]))>0 Or (InStr([Which Vendor/s?, Blank = All],[Vendor])) Is Null) AND ((InStr([Which MC/s?, Blank = All],[Movement Category]))>0 Or (InStr([Which MC/s?, Blank = All],[Movement Category])) Is Null) AND ((InStr([Which FP/s?, Blank = All],[FP]))>0 Or (InStr([Which FP/s?, Blank = All],[FP])) Is Null))
How do I translate this into code for the custom dialog box? Also do I need to create a hidden control to assign said code to?
Thanks for any help
Dev
I have created a custom dialog box which is to replace query parameter popups. Query results in 3 pop up boxes and I'd like the CDB to replace same with one pop up box where all criteria may be entered.
I believe this would have to be coded but I am way over my head in this area having never written any before.
The query as it stands now works perfectly and the SQL for the optional criteria is as follows:
WHERE ((InStr([Which Vendor/s?, Blank = All],[Vendor]))>0 Or (InStr([Which Vendor/s?, Blank = All],[Vendor])) Is Null) AND ((InStr([Which MC/s?, Blank = All],[Movement Category]))>0 Or (InStr([Which MC/s?, Blank = All],[Movement Category])) Is Null) AND ((InStr([Which FP/s?, Blank = All],[FP]))>0 Or (InStr([Which FP/s?, Blank = All],[FP])) Is Null))
How do I translate this into code for the custom dialog box? Also do I need to create a hidden control to assign said code to?
Thanks for any help
Dev