Solved

Table Lookup-Combo Box, field text displaying as number in a report

Posted on 2014-02-07
4
1,519 Views
Last Modified: 2014-02-07
Hi

I've a small db with only three tables.  Projects, Vendors & PurchaseOrders.  The Projects and Vendors tables are all text fields.  The PurchaseOrders table has a few fields that are both Lookup-Combo Box and Lookup-Value List.

My problem is the text from the field that has a Lookup-Combo Box is transposed to a number in my reports.

There are two fields in the PurchaseOrders table that have a Combo Box control based on a query of two text fields in the Projects table.  Both fields are Text, but one has a project title and the other the project number.

If I create a parameter query to the PurchaseOrders table, and the parameter is for the project number field, the query will run but will not show the records.  

However if I create a parameter query based on a table field that is a Lookup~Value List, it will work.

In a report, which is based on a query or directly to the table, the field that is a Lookup-Combo Box will not display correctly, the project description is numeric, ie: 19 or 201, etc.

Any ideas?

Thanks in advance
Bob
0
Comment
Question by:schumarg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 39842304
Hello Bob,

Just few clarifications.

What is the data type of the field that has the look-up value list? Is that field look up the value from other tables or from a created list?


Sincerely,
Ed
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39842310
add to your query the Lookup table
create a join on the project number
from the lookup table, select the description field and drop it to your query column

use the desccription field as the control source of the textbox in your report
0
 

Author Comment

by:schumarg
ID: 39842374
Ed, ita created list.


What I just discovered was the "Project" text field in the Projects table was indexed YES (Duplicates Ok).  I changed to NO and the parameter query ran.  Does this make sense?
0
 

Author Comment

by:schumarg
ID: 39842506
Rey - adding the Project table to the query with a join between the Projects worked.

THANK YOU  I accept this answer.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question