Re: report returns Field ID instead of value
- From: Jason Lepack <jlepack@xxxxxxxxx>
- Date: Wed, 04 Jul 2007 13:38:18 -0700
Yep, Lookup Fields are bad for many reasons. Check on your report
that the item is a combo box and not a text box. If it's not, put the
field on again.
On Jul 4, 3:56 pm, Gerry H <Ger...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Thanks Steve, I see where you are talking about. But this is the situation I
have
tbl_Projects
Proj no
Proj Name
Client
Proj Descrip
etc
tbl_Client
Name
Address
Contact
etc
tbl client is already linked to tbl project via a combo box.
when I run the query normally, the datasheet returns the correct name so I
feel that the link is correct. it is only when i generate a report from it
that the report returns the ID value aghhhhhh
Gerry
"Steve" wrote:
You probably have something like this:
TblCustomer
CustomerID
Customername
etc
TblOrder
OrderID
OrderDate
CustomerID
etc
On your form where you enter orders you enter the customer with a combobox.
The combobox uses TblCustomer as the row source. The combobox has Bound
Column set to 1 and Column Width set to 0;2. The combobox displays the
customer name but when you make your selection, CustomerID is recorded in
TblOrder. CustomerID is a number. If you look at TblOrder, you will see all
numbers in the CustomerID field. If you create a query based only on
TblOrder for the recordsource of a report, and expect to see the customer
name in the CustomerID field, all you are going to see are numbers where you
expect to see customer names. The fix is simple. Include TblCustomer in your
query and join CustomerID to CustomerID. Include CustomerName from
TblCustomer in your query then include CustomerName in the fields for your
report. Now you will see the customer name where you expect to see the
customer name.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@xxxxxxxxxxxxxxx
"Gerry H" <Ger...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:05DE4C5A-DE93-4B91-A906-6A2C1D77D8FF@xxxxxxxxxxxxxxxx
This has probably been answered before
I have a query that when i run, it returns exactly as i need if not
linked
to anything (input form or report). The query is a parameter query that is
linked to a form (the form is a series of combo boxes). i have also
constructed a report for it to populate.
the problem i have is that one of my fields returns the Field ID in the
report and dispite my endevours to trace the offending link, I fail to
find
it.
Any suggestions would be much appreciated. (I can post any SQL if needed)- Hide quoted text -
- Show quoted text -
.
- References:
- Re: report returns Field ID instead of value
- From: Steve
- Re: report returns Field ID instead of value
- From: Gerry H
- Re: report returns Field ID instead of value
- Prev by Date: Re: conditional join?
- Next by Date: Re: Display 4 weeks of data
- Previous by thread: Re: report returns Field ID instead of value
- Next by thread: Re: report returns Field ID instead of value
- Index(es):
Relevant Pages
|