M
maceslin
Although I have used Access for several years I am new to VBA coding
and am trying to enhance some of the dbases I have built.
I am trying to use cascading lists to show values using Case Select
rather than query parameters as some of the parameters have lots of
choices that I will use to create reports.
The problem is that the tables for Specific_Reports RowSource are
anywhere from 1-4 columns and the needed information is not in the
same relative position in each table
How do I change the code or combo box properties to take this into
account?
Code
Select Case avail_reports.Value
Case "Numbered Fleet"
Specifc_Reports.RowSource= "Numbered Fleet" 'this is a two
column table that works with combo box properties of column count 2,
column width 0 to hide ID number and bound column 1
Case "DOTMLPF"
Specific_Reports.RowSource="DOTMLPF Choices" ' this is a
one column table and nothing shows up in Specific Reports
Case "FMSR"
Specific_Reports. RowSource= ""FMSR Reps" ' this is
a 4 column field and nothing show up in Specifc_Rports
'I have 6 additional cases that I have not listed
End Select
and am trying to enhance some of the dbases I have built.
I am trying to use cascading lists to show values using Case Select
rather than query parameters as some of the parameters have lots of
choices that I will use to create reports.
The problem is that the tables for Specific_Reports RowSource are
anywhere from 1-4 columns and the needed information is not in the
same relative position in each table
How do I change the code or combo box properties to take this into
account?
Code
Select Case avail_reports.Value
Case "Numbered Fleet"
Specifc_Reports.RowSource= "Numbered Fleet" 'this is a two
column table that works with combo box properties of column count 2,
column width 0 to hide ID number and bound column 1
Case "DOTMLPF"
Specific_Reports.RowSource="DOTMLPF Choices" ' this is a
one column table and nothing shows up in Specific Reports
Case "FMSR"
Specific_Reports. RowSource= ""FMSR Reps" ' this is
a 4 column field and nothing show up in Specifc_Rports
'I have 6 additional cases that I have not listed
End Select