How can you select records based on more than one combo box -
I have a combobox that selects records based on name
(I'm sure this has been asked a thousand times - web site answer/link
could be helpful too; but I'm so bad with syntax that specifics will
be MOST helpful)
SELECT DISTINCT [qryAE_ProtocolsSponsors].[PI Last Name],
[qryAE_ProtocolsSponsors].[PI First Name] FROM
[qryAE_ProtocolsSponsors] Union Select "<ALL>" , NULL From
[qryAE_ProtocolsSponsors];
and sorts the results:
If Me![Combo24] = "<All>" Then
DoCmd.ShowAllRecords
Me.OrderBy = "[PI Last Name] ASC"
Me.OrderByOn = True
Else
DoCmd.ApplyFilter , "[PI Last Name] =
Forms![Form-ProtocolsSponsors]![combo24]"
Me.OrderBy = "qryAE_ProtocolsSponsors.[Current Status] ASC"
'Me.OrderBy = "[Sponsor] ASC"
Me.OrderByOn = True
End If
1 How can I sort by Current Status THEN by Sponsor? so all those of
one status are sorted by sponsor and the next status are sorted by
sponsor, also?)
2. How can I set up two combo boxes so that combo 1 limits the record
set then combo 2 further limits the record set.
Then use a button to Show all records.
Thanks so much in advance!!
-warning e-mail address altered- arthureNOSPACE@