N
Nbene
Hi All,
Wondering if anyone can point me in the right direction.
I have a continuos form that has multiple combo boxes, after user
selects from these then presses GO it runs an SQL statement putting in
the appropriate parameters.
SQL = "SELECT tblOrganisation.OrganisationId, tblLUGroup.Group,
tblLUIndustry.Industry,"
SQL = SQL + " tblOrganisation.OName , tblOrganisation.OTown,
tblLUCountry.Country"
SQL = SQL + " FROM ((tblOrganisation LEFT JOIN tblLUGroup ON
tblOrganisation.OGroup ="
SQL = SQL + " tblLUGroup.GrouId) LEFT JOIN tblLUIndustry ON
tblOrganisation.OIndustry ="
SQL = SQL + " tblLUIndustry.IndustryId) LEFT JOIN tblLUCountry ON
tblOrganisation.OCountry = tblLUCountry.CountryId"
SQL = SQL + " WHERE (((tblLUIndustry.Industry)= '" & StrIndustry &
"'));"
This then becomes the record source then i requery.
On the top of the form i have a text box that counts the number if
records, which works fine for if the record source is a query but i am
not sure what to do when the domain, ie. record source is a SELECT
statement.
As the SQL statement changes depending on how many of the combo boxes
are selected I am not sure how to progress.
Any ideas would be greatly appreciated.
Regards
NB
Wondering if anyone can point me in the right direction.
I have a continuos form that has multiple combo boxes, after user
selects from these then presses GO it runs an SQL statement putting in
the appropriate parameters.
SQL = "SELECT tblOrganisation.OrganisationId, tblLUGroup.Group,
tblLUIndustry.Industry,"
SQL = SQL + " tblOrganisation.OName , tblOrganisation.OTown,
tblLUCountry.Country"
SQL = SQL + " FROM ((tblOrganisation LEFT JOIN tblLUGroup ON
tblOrganisation.OGroup ="
SQL = SQL + " tblLUGroup.GrouId) LEFT JOIN tblLUIndustry ON
tblOrganisation.OIndustry ="
SQL = SQL + " tblLUIndustry.IndustryId) LEFT JOIN tblLUCountry ON
tblOrganisation.OCountry = tblLUCountry.CountryId"
SQL = SQL + " WHERE (((tblLUIndustry.Industry)= '" & StrIndustry &
"'));"
This then becomes the record source then i requery.
On the top of the form i have a text box that counts the number if
records, which works fine for if the record source is a query but i am
not sure what to do when the domain, ie. record source is a SELECT
statement.
As the SQL statement changes depending on how many of the combo boxes
are selected I am not sure how to progress.
Any ideas would be greatly appreciated.
Regards
NB