Hey,
I have 8 check boxes named ChkA, ChkC, etc basically when I click on an ok button, I'll have an IF statement that says...
If chkA.checked = true then
.
.
.
End IF
Between the If And The End If, I will either put the relevant letters into a variable (e.g. chkA = "A"
or declare a boolean to show which letters have been clicked. Now basically after this selection process, I need an VBA/SQL statement that says..
if "A" (via ChkA) has been selected, then search through a query and show all records where a certain field begins with the letter A.
These are Job Numbers e.g.
a441344
c552522
j456341
e563222
...
So if a user selects multiple checkboxes, I needs to bring up all the jobs that start with those letters.
This requires both VBA and SQL Im assuming, my VBA is ok but SQL not great, I'll post it in the queries Forum as well if it is more relevant to them.
Thanks for any help I can get.
Cheers
Sam
I have 8 check boxes named ChkA, ChkC, etc basically when I click on an ok button, I'll have an IF statement that says...
If chkA.checked = true then
.
.
.
End IF
Between the If And The End If, I will either put the relevant letters into a variable (e.g. chkA = "A"
if "A" (via ChkA) has been selected, then search through a query and show all records where a certain field begins with the letter A.
These are Job Numbers e.g.
a441344
c552522
j456341
e563222
...
So if a user selects multiple checkboxes, I needs to bring up all the jobs that start with those letters.
This requires both VBA and SQL Im assuming, my VBA is ok but SQL not great, I'll post it in the queries Forum as well if it is more relevant to them.
Thanks for any help I can get.
Cheers
Sam