Adding 'All' to a cbo selection

J

Junior

Using a [cboPosition] to limit selections in [cboApplicant]
[cboPosition] Rowsource is:
SELECT TlkpAppPosition.PosID, TlkpAppPosition.PosDesc
FROM TlkpAppPosition;
Want to add "All" as the default selection in [cboPosition] to allow all
records to appear in cboApplicant.

[cboApplicant Rowsource is:
SELECT [qfrmAppPick].[AppID], [qfrmAppPick].[Name], [qfrmAppPick].[SSN],
[qfrmAppPick].[PosID], [qfrmAppPick].[Date] FROM qfrmAppPick ORDER BY
[qfrmAppPick].[Name];

[qfrmAppPick] is a parameter query:
SELECT TblApp.SSN, [lname] & ", " & [fname] AS Name, TlkpAppPosition.PosDesc
AS [Position], TblApp.AppID, TblApp.ApplicationDate AS [Date],
TblApp.AppPosition AS PosID
FROM TblAppMstr INNER JOIN (TblApp LEFT JOIN TlkpAppPosition ON
TblApp.AppPosition = TlkpAppPosition.PosID) ON TblAppMstr.SSN = TblApp.SSN
WHERE (((TblApp.AppPosition)=[forms]![frmAppEnter].[cboPosition]));

How can i add "All" as a selection in [cboPosition] so that all records will
appear in [cboApplicant]

Thanks in advance for assistance
 
J

Junior

Thanks
Douglas J. Steele said:
See http://www.mvps.org/access/forms/frm0043.htm at "The Access Web" for
how to add All to the combo.

Change your parameter query to

WHERE TblApp.AppPosition=[forms]![frmAppEnter].[cboPosition] OR
[forms]![frmAppEnter].[cboPosition] = "All"


--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Junior said:
Using a [cboPosition] to limit selections in [cboApplicant]
[cboPosition] Rowsource is:
SELECT TlkpAppPosition.PosID, TlkpAppPosition.PosDesc
FROM TlkpAppPosition;
Want to add "All" as the default selection in [cboPosition] to allow all
records to appear in cboApplicant.

[cboApplicant Rowsource is:
SELECT [qfrmAppPick].[AppID], [qfrmAppPick].[Name], [qfrmAppPick].[SSN],
[qfrmAppPick].[PosID], [qfrmAppPick].[Date] FROM qfrmAppPick ORDER BY
[qfrmAppPick].[Name];

[qfrmAppPick] is a parameter query:
SELECT TblApp.SSN, [lname] & ", " & [fname] AS Name,
TlkpAppPosition.PosDesc AS [Position], TblApp.AppID,
TblApp.ApplicationDate AS [Date], TblApp.AppPosition AS PosID
FROM TblAppMstr INNER JOIN (TblApp LEFT JOIN TlkpAppPosition ON
TblApp.AppPosition = TlkpAppPosition.PosID) ON TblAppMstr.SSN =
TblApp.SSN
WHERE (((TblApp.AppPosition)=[forms]![frmAppEnter].[cboPosition]));

How can i add "All" as a selection in [cboPosition] so that all records
will appear in [cboApplicant]

Thanks in advance for assistance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top