K
kryzystof via AccessMonster.com
Good Day!
I am working via ODBC with a sql database.
what i want to accomplish is this:
there are drop-downs in the program running from the sql database, where the
user sees opt1, opt2, etc.
and when i look at the tables, i see 0,1,2,4,5,8,etc.
i know which titles belong to which numbers, and in a report i want the user
to see the title, not the assigned value. i can accomplish this witha
textbox and a slew if nested iif's, but it is hard to modify, time consuming,
etc.
i am trying to do a select case statement to take care of this:
sub Report_Open()
Select Case LOCATION (LOCATION is the field that has the assigned
number in it)
case "001"
location_display = "Name1"
case "002"
location_display = "Name2"
etc...
i keep getting an error message that states:
You have entered an expression that has no value
can a select case be done in a report?
is it something in my first line of the select?
TIA
~K
I am working via ODBC with a sql database.
what i want to accomplish is this:
there are drop-downs in the program running from the sql database, where the
user sees opt1, opt2, etc.
and when i look at the tables, i see 0,1,2,4,5,8,etc.
i know which titles belong to which numbers, and in a report i want the user
to see the title, not the assigned value. i can accomplish this witha
textbox and a slew if nested iif's, but it is hard to modify, time consuming,
etc.
i am trying to do a select case statement to take care of this:
sub Report_Open()
Select Case LOCATION (LOCATION is the field that has the assigned
number in it)
case "001"
location_display = "Name1"
case "002"
location_display = "Name2"
etc...
i keep getting an error message that states:
You have entered an expression that has no value
can a select case be done in a report?
is it something in my first line of the select?
TIA
~K