Re: Fields in Label don't give correct information

Tech-Archive recommends: Fix windows errors by optimizing your registry



Some of us feel lookup fields are an evil mis-feature
http://www.mvps.org/access/lookupfields.htm.

If you want to display text values in a report, you should include the
tables and fields in the report's record source that contain the actual
values, not just the ID values.

--
Duane Hookom
MS Access MVP

"Bill_De" <BillDe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FC4ECB16-B743-4FED-94A9-AA6F1D5FE3D3@xxxxxxxxxxxxxxxx
I am hoping someone can head me in the right direction on this one. I
should
tell you I am not that proficient at Access so if you can help please
explain
your answer in a little detail.

In Reports I am trying to create Labels for ID badges using the Label
Wizard. When I create a report using a query to combine two tables I get
all
of the fields to show the correct information, however when I open the
Label
Wizard and create Labels for ID badges using the same query all I get are
the
line numbers.

In my tables I have fields that have drop downs to select information for
example in by table tblEvent I have a drop down box created from the look
up
wizard in tables. The drop down box allows me to select building and room
numbers.

I created a query to combine information from my tblcontacts (personal
information) and information from tblEvent this is room assignments, staff
positions, and team assignments.
When I create a report from the query I get the correct info for example
under the field "Room Assignment" I will get "Lakeview 2 A 1; Building is
Lakeview, 2 is Room number, A is Room Letter, and 1 is the bunk number.
When I create a Label using the same query all I get in the Room
Assignment
field is "1" which is the autonumber in the table.

As a note in the table tblEvent for Room assignment I used the lookup
wizard
and the result was: Field Name "BuildingID" - Data Type "Number"
In the field properties I have the column width set at 0";1";1"; 1"; 1"
and
the row source is: SELECT [tblhousing].[BuildingID]&"
"&[tblhousing].[Building]&" "&[tblhousing].[RoomNumber]&"
"&[tblhousing].[RoomLetter]&" "&[tblhousing].[Bunk] FROM tblhousing;

Also I get this same problem if I create a label from just a table. I
tried
using just the tblContacts where I have all the states in a drop down and
when I create the label and enter a state all I get in the label is the
line
number.


Thanks in advance for your help
Bill_De



.



Relevant Pages

  • Re: Fields in Label dont give correct information
    ... You need to create a query based on tblRegEvent and tblRegPayment. ... -If your DCountis to count values in your report, ... half the time with very few errors (other than that label problem I had.) ... For example in the Room assignment on the report an idividual will be ...
    (microsoft.public.access.reports)
  • Re: Fields in Label dont give correct information
    ... tables where the data was stored in the query the query would not run. ... half the time with very few errors (other than that label problem I had.) ... report all of the information shows up on the report the way I want it to. ... For example in the Room assignment on the report an idividual will be ...
    (microsoft.public.access.reports)
  • Re: Barcode - Query and Print Single Record
    ... Write a query that references the key field of your form as the criteria. ... put a button on the form to open the report. ... If you print a laser label, then to re-use your sheet, just skip position 1 ... Chemical Name from the Chemicals Table. ...
    (microsoft.public.access.formscoding)
  • Re: Passing Parameters to Column Headings
    ... You can create a column "label" in a report by using text boxes bound ... Duane Hookom ... > displayed in a report label (or in a query column heading). ...
    (microsoft.public.access.queries)
  • Re: Labels
    ... Then set the RecordSource of the report to this query. ... my label data table to the query. ... I have a database to print labels and all is well with that as long as ...
    (microsoft.public.access.queries)