G
Guest
I have a question on a database that I found on the web, Icecream.mdb and
also in a book . My question is about the criteria form that they have.
On one of the comboboxes the rowsource is from a union query as follows
SELECT tblCompany.CompanyID, tblCompany.CompanyName
FROM tblCompany
union select -1,'<All Companies>' from tblCompany ORDER BY
tblCompany.CompanyName;
How will I in the module code it so that when I select <All Companies> am
able to get a result based on all
If chkCompanyID Then
sWHERE = sWHERE & " AND s.fkCompanyID = " & cboCompanyID
End If
also in a book . My question is about the criteria form that they have.
On one of the comboboxes the rowsource is from a union query as follows
SELECT tblCompany.CompanyID, tblCompany.CompanyName
FROM tblCompany
union select -1,'<All Companies>' from tblCompany ORDER BY
tblCompany.CompanyName;
How will I in the module code it so that when I select <All Companies> am
able to get a result based on all
If chkCompanyID Then
sWHERE = sWHERE & " AND s.fkCompanyID = " & cboCompanyID
End If