B
Bob Watson
I understand what this query will do relative to
parameters:
PARAMETERS [Begin Date] DateTime, [End Date] DateTime;
SELECT Nz(Registration.Age, "Blank") AS RegistrationAge,
Count(Registration.Age) AS RegistrationCount
FROM Registration
WHERE (((Registration.[Date Attended])<=[End Date]
And (Registration.[Date Attended])>=[Begin Date]))
GROUP BY Registration.Age;
________
What if I wanted a similar query with different
parameters ... different parameter format I mean ...
picked from a combo box ... say I wanted them where
a persons CountyOfOrigin was Lee, Chambers or Montgomery
picked from a "drop-down combo box". How do I go
about this? Also, if the combo box is left blank from
the picks of Lee/Chambers/Montgomery then it just
skips the WHERE part and provides all counties ??
TIA,
Bob
parameters:
PARAMETERS [Begin Date] DateTime, [End Date] DateTime;
SELECT Nz(Registration.Age, "Blank") AS RegistrationAge,
Count(Registration.Age) AS RegistrationCount
FROM Registration
WHERE (((Registration.[Date Attended])<=[End Date]
And (Registration.[Date Attended])>=[Begin Date]))
GROUP BY Registration.Age;
________
What if I wanted a similar query with different
parameters ... different parameter format I mean ...
picked from a combo box ... say I wanted them where
a persons CountyOfOrigin was Lee, Chambers or Montgomery
picked from a "drop-down combo box". How do I go
about this? Also, if the combo box is left blank from
the picks of Lee/Chambers/Montgomery then it just
skips the WHERE part and provides all counties ??
TIA,
Bob