PC Review


Reply
Thread Tools Rate Thread

Display combo box entries in reports as text, not ID number

 
 
=?Utf-8?B?amFuZTI4MDU=?=
Guest
Posts: n/a
 
      28th Mar 2007
I have set up a database to log mail. I have several tables that "feed"
combo box entries, which comprise of 2 columns - and ID column set as primary
key and a column that lists, for example, a "correspondence type" ... letter,
memo, invoice. I have then created a central table that stores all the
information from the form entries I make. The combo boxes display as text
when viewed as a form, however, when I go back to the central table, or run a
report, the places where I have combo boxes are displayed as the ID number.
How do I get round this? It's driving me crazy and I'm in a hurry to start
producing daily reports at work!
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      28th Mar 2007
That's one of the reasons why many of us consider Lookup Fields to be an
extremely ill-conceived idea (see
http://www.mvps.org/access/lookupfields.htm at "The Access Web" for some
other reasons)

You have to create a query that joins all of the tables, and use that query
for reporting purposes.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"jane2805" <(E-Mail Removed)> wrote in message
news:3F683C7D-8867-419B-8E09-(E-Mail Removed)...
>I have set up a database to log mail. I have several tables that "feed"
> combo box entries, which comprise of 2 columns - and ID column set as
> primary
> key and a column that lists, for example, a "correspondence type" ...
> letter,
> memo, invoice. I have then created a central table that stores all the
> information from the form entries I make. The combo boxes display as text
> when viewed as a form, however, when I go back to the central table, or
> run a
> report, the places where I have combo boxes are displayed as the ID
> number.
> How do I get round this? It's driving me crazy and I'm in a hurry to
> start
> producing daily reports at work!



 
Reply With Quote
 
=?Utf-8?B?QmVubnk=?=
Guest
Posts: n/a
 
      28th Mar 2007
In your report, delete your field and add an unbound text box. Put something
like this in your unbound text box:

=IIf([CorrespondenceType]=1,"Letter",IIf([CorrespondenceType]=2,"Memo"),IIf([CorrespondenceType]=3,"Invoice")))

Replace :CorrespondenceType: to whatever you have in your table, I just used
that as an example.



"jane2805" wrote:

> I have set up a database to log mail. I have several tables that "feed"
> combo box entries, which comprise of 2 columns - and ID column set as primary
> key and a column that lists, for example, a "correspondence type" ... letter,
> memo, invoice. I have then created a central table that stores all the
> information from the form entries I make. The combo boxes display as text
> when viewed as a form, however, when I go back to the central table, or run a
> report, the places where I have combo boxes are displayed as the ID number.
> How do I get round this? It's driving me crazy and I'm in a hurry to start
> producing daily reports at work!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remember last entries in a forms text box or combo box Fletcher Microsoft Access Form Coding 4 17th Jul 2007 03:39 PM
Create a combo box to display list of reports cwhitmore Microsoft Access Forms 6 30th Mar 2007 04:40 PM
Display Number Reports to be printed =?Utf-8?B?R3VzIENodWNo?= Microsoft Access VBA Modules 4 18th Sep 2006 05:33 PM
Reports To Display Number Beside Record =?Utf-8?B?RXJpYyBSLiBDbGFyaw==?= Microsoft Access Reports 1 21st Dec 2004 01:27 AM
combo box number of entries limits drabbacs Microsoft Access VBA Modules 1 12th Jan 2004 07:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:23 PM.