I currently have a listbox that is populated with values from a table of City Regions (ie PDX, LAX, SFO, etc.)
I want to be able to list all the regions from the table, as well as include an "All" option.
I'm using this list box as selection criteria to filter a report.
Currently I have the listbox's
property set to an SQL query (generated by Access' Wizard):
I've tried setting the listbox's
property to "Value List" and listing the values thus:
["All",
- I want to keep all code within the form and the properties of the controls rather than create an actual query.
- And I don't want to include "All" as one of the regions in the table (or is this the easiest solution?)
- And I want to avoid simply typing in all the selections (in the case that more regions are added to the table, I don't have to update the form every time that happens)
Any ideas, anyone? Earnie Eng
Newbie Access Programmer/DBA
(I just got a job! yay!)
If you are born once, you will die twice.
If you are born twice, [i
I want to be able to list all the regions from the table, as well as include an "All" option.
I'm using this list box as selection criteria to filter a report.
Currently I have the listbox's
Code:
.rowsource
Code:
SELECT [lkpRegions].[txtRegionID], [lkpRegions].[txtRegionName] FROM lkpRegions;
I've tried setting the listbox's
Code:
.RowSourceType
["All",
Code:
SELECT [lkpRegions].[txtRegionID], [lkpRegions].[txtRegionName] FROM lkpRegions;
- I want to keep all code within the form and the properties of the controls rather than create an actual query.
- And I don't want to include "All" as one of the regions in the table (or is this the easiest solution?)
- And I want to avoid simply typing in all the selections (in the case that more regions are added to the table, I don't have to update the form every time that happens)
Any ideas, anyone? Earnie Eng
Newbie Access Programmer/DBA
(I just got a job! yay!)
Code:
---------------------------------
If you are born twice, [i