N
NeoFax
I have 5 comboboxes on my form that allow technicians to get to the
exact data they are looking for quickly. However, the syncing only
works for the first three comboboxes. Also, I cannot select say only
a value from the third box and it delimits previous boxes. Currently
I am using the way that is depicted in the microsoft website unbound
sample database by using [forms]![formname]![cmbName] and is null to
filter/sync the comboboxes. What I would like to do is use code to
accomplish this as it is more flexible than figuring out queries. ;^)
Here is the SQL for the fourth combobox:
SELECT qryMECAPPDumpPDPStation.[JOB CARD NUMBER]
FROM qryMECAPPDumpPDPStation
WHERE (((qryMECAPPDumpPDPStation.[HELO#])=[Forms]![frmIssues2]!
[cmbHelo]) AND ((qryMECAPPDumpPDPStation.Station)=[Forms]![frmIssues2]!
[cmbStation]) AND ((qryMECAPPDumpPDPStation.Area)=[Forms]![frmIssues2]!
[cmbArea])) OR (((qryMECAPPDumpPDPStation.[HELO#])=[Forms]!
[frmIssues2]![cmbHelo]) AND (([Forms]![frmIssues2]![cmbArea]) Is Null)
AND (([Forms]![frmIssues2]![cmbStation]) Is Null)) OR
(((qryMECAPPDumpPDPStation.Station)=[Forms]![frmIssues2]![cmbStation])
AND (([Forms]![frmIssues2]![cmbArea]) Is Null) AND (([Forms]!
[frmIssues2]![cmbHelo]) Is Null)) OR (((qryMECAPPDumpPDPStation.Area)=
[Forms]![frmIssues2]![cmbArea]) AND (([Forms]![frmIssues2]!
[cmbStation]) Is Null) AND (([Forms]![frmIssues2]![cmbHelo]) Is Null))
OR ((([Forms]![frmIssues2]![cmbArea]) Is Null) AND (([Forms]!
[frmIssues2]![cmbStation]) Is Null) AND (([Forms]![frmIssues2]!
[cmbHelo]) Is Null))
GROUP BY qryMECAPPDumpPDPStation.[JOB CARD NUMBER];
As you can see, I am missing multiple "if cmbbox x and y have values
but z is null then" type SQL info in this particular query. Any help
would be appreciated. Thanks!
exact data they are looking for quickly. However, the syncing only
works for the first three comboboxes. Also, I cannot select say only
a value from the third box and it delimits previous boxes. Currently
I am using the way that is depicted in the microsoft website unbound
sample database by using [forms]![formname]![cmbName] and is null to
filter/sync the comboboxes. What I would like to do is use code to
accomplish this as it is more flexible than figuring out queries. ;^)
Here is the SQL for the fourth combobox:
SELECT qryMECAPPDumpPDPStation.[JOB CARD NUMBER]
FROM qryMECAPPDumpPDPStation
WHERE (((qryMECAPPDumpPDPStation.[HELO#])=[Forms]![frmIssues2]!
[cmbHelo]) AND ((qryMECAPPDumpPDPStation.Station)=[Forms]![frmIssues2]!
[cmbStation]) AND ((qryMECAPPDumpPDPStation.Area)=[Forms]![frmIssues2]!
[cmbArea])) OR (((qryMECAPPDumpPDPStation.[HELO#])=[Forms]!
[frmIssues2]![cmbHelo]) AND (([Forms]![frmIssues2]![cmbArea]) Is Null)
AND (([Forms]![frmIssues2]![cmbStation]) Is Null)) OR
(((qryMECAPPDumpPDPStation.Station)=[Forms]![frmIssues2]![cmbStation])
AND (([Forms]![frmIssues2]![cmbArea]) Is Null) AND (([Forms]!
[frmIssues2]![cmbHelo]) Is Null)) OR (((qryMECAPPDumpPDPStation.Area)=
[Forms]![frmIssues2]![cmbArea]) AND (([Forms]![frmIssues2]!
[cmbStation]) Is Null) AND (([Forms]![frmIssues2]![cmbHelo]) Is Null))
OR ((([Forms]![frmIssues2]![cmbArea]) Is Null) AND (([Forms]!
[frmIssues2]![cmbStation]) Is Null) AND (([Forms]![frmIssues2]!
[cmbHelo]) Is Null))
GROUP BY qryMECAPPDumpPDPStation.[JOB CARD NUMBER];
As you can see, I am missing multiple "if cmbbox x and y have values
but z is null then" type SQL info in this particular query. Any help
would be appreciated. Thanks!