Select Case in a Report
- From: "kryzystof via AccessMonster.com" <u11875@uwe>
- Date: Mon, 14 Aug 2006 17:29:41 GMT
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
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-reports/200608/1
.
- Follow-Ups:
- RE: Select Case in a Report
- From: scruffy
- RE: Select Case in a Report
- Prev by Date: Re: Getting rid of blank spaces in a report
- Next by Date: RE: Select Case in a Report
- Previous by thread: Re: Calculations in Report...
- Next by thread: RE: Select Case in a Report
- Index(es):
Relevant Pages
|