A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query help needed



 
 
Thread Tools Display Modes
  #1  
Old July 19th, 2008, 03:05 AM posted to microsoft.public.access.queries
Dave
external usenet poster
 
Posts: 55
Default Query help needed

Access 2003

I have a field (Forman) in a table which is a lookup to another table. I an
storing the ID not the name.


When I use the field in a query for a report it gives me the ID (column 1),
and not he name (column 2).

Is there anyway in the query (In the "Field" row) to call the name (column
2)?

Hope that makes sense.


Thanks

dave

  #2  
Old July 19th, 2008, 04:14 AM posted to microsoft.public.access.queries
fredg
external usenet poster
 
Posts: 4,386
Default Query help needed

On Fri, 18 Jul 2008 19:05:53 -0700, dave wrote:

Access 2003

I have a field (Forman) in a table which is a lookup to another table. I an
storing the ID not the name.

When I use the field in a query for a report it gives me the ID (column 1),
and not he name (column 2).

Is there anyway in the query (In the "Field" row) to call the name (column
2)?

Hope that makes sense.

Thanks

dave


And the actual table and field names are??????

In the query, you need to include both tables (and make sure there is
a relationship set between them ... between the ID field in the one
table and the stored ID in the other table).
Then instead of using the [ID] field, use the [Name] field in the
query.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.