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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need help with combo box lookup reference in a report



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2009, 10:28 PM posted to microsoft.public.access.reports
Lindsay
external usenet poster
 
Posts: 76
Default Need help with combo box lookup reference in a report

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay
  #2  
Old April 30th, 2009, 12:07 AM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Need help with combo box lookup reference in a report

You can use a query to feed your report where 'Projects' table is joined to
'Development Phases' on ID and include Code in query output.

"Lindsay" wrote:

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay

  #3  
Old April 30th, 2009, 03:46 PM posted to microsoft.public.access.reports
Lindsay
external usenet poster
 
Posts: 76
Default Need help with combo box lookup reference in a report

Hi Karl,

I'm sorry, but I can't figure out how to get the query to work. I can only
get it to match a Development Phase to every single "Code" (letter) . Which
is not correct. There is also a sub-field in the Projects table called
DevelopmentPhase.Value, but when I try to pull that into the query, I get an
error message about ambiguous outer joins.

Thanks,
Lindsay

"KARL DEWEY" wrote:

You can use a query to feed your report where 'Projects' table is joined to
'Development Phases' on ID and include Code in query output.

"Lindsay" wrote:

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay

  #4  
Old April 30th, 2009, 08:51 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Need help with combo box lookup reference in a report

Create a query in design view with both 'Projects' and 'Development Phases'
tables.
Pull down all fields from both tables to the FIELD row of the grid.
Click on VIEW _ SQL View, highlight all, copy, and paste in a post.

"Lindsay" wrote:

Hi Karl,

I'm sorry, but I can't figure out how to get the query to work. I can only
get it to match a Development Phase to every single "Code" (letter) . Which
is not correct. There is also a sub-field in the Projects table called
DevelopmentPhase.Value, but when I try to pull that into the query, I get an
error message about ambiguous outer joins.

Thanks,
Lindsay

"KARL DEWEY" wrote:

You can use a query to feed your report where 'Projects' table is joined to
'Development Phases' on ID and include Code in query output.

"Lindsay" wrote:

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay

  #5  
Old April 30th, 2009, 10:51 PM posted to microsoft.public.access.reports
Lindsay
external usenet poster
 
Posts: 76
Default Need help with combo box lookup reference in a report

SELECT [Development Phases].ID, [Development Phases].Code, [Development
Phases].DevelopmentPhase, Projects.DevelopmentPhase,
Projects.DevelopmentPhase.Value, Projects.ID, Projects.[Sort order],
Projects.ProjectName, Projects.City, Projects.State
FROM [Development Phases], Projects;


"KARL DEWEY" wrote:

Create a query in design view with both 'Projects' and 'Development Phases'
tables.
Pull down all fields from both tables to the FIELD row of the grid.
Click on VIEW _ SQL View, highlight all, copy, and paste in a post.

"Lindsay" wrote:

Hi Karl,

I'm sorry, but I can't figure out how to get the query to work. I can only
get it to match a Development Phase to every single "Code" (letter) . Which
is not correct. There is also a sub-field in the Projects table called
DevelopmentPhase.Value, but when I try to pull that into the query, I get an
error message about ambiguous outer joins.

Thanks,
Lindsay

"KARL DEWEY" wrote:

You can use a query to feed your report where 'Projects' table is joined to
'Development Phases' on ID and include Code in query output.

"Lindsay" wrote:

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay

  #6  
Old April 30th, 2009, 11:10 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Need help with combo box lookup reference in a report

I missed something in your eariler post --
"In the Projects table, only the DevelopmentPhase field is shown in a
combo box. Multiple values are allowed/selected."
and
"There is also a sub-field in the Projects table called
DevelopmentPhase.Value"

It appears that your table has a LookUp field. All that I have read says
that is a terrible thing to use.

I can not help you with your problem. You need to start a new thread for
someone else to help.
"Lindsay" wrote:

SELECT [Development Phases].ID, [Development Phases].Code, [Development
Phases].DevelopmentPhase, Projects.DevelopmentPhase,
Projects.DevelopmentPhase.Value, Projects.ID, Projects.[Sort order],
Projects.ProjectName, Projects.City, Projects.State
FROM [Development Phases], Projects;


"KARL DEWEY" wrote:

Create a query in design view with both 'Projects' and 'Development Phases'
tables.
Pull down all fields from both tables to the FIELD row of the grid.
Click on VIEW _ SQL View, highlight all, copy, and paste in a post.

"Lindsay" wrote:

Hi Karl,

I'm sorry, but I can't figure out how to get the query to work. I can only
get it to match a Development Phase to every single "Code" (letter) . Which
is not correct. There is also a sub-field in the Projects table called
DevelopmentPhase.Value, but when I try to pull that into the query, I get an
error message about ambiguous outer joins.

Thanks,
Lindsay

"KARL DEWEY" wrote:

You can use a query to feed your report where 'Projects' table is joined to
'Development Phases' on ID and include Code in query output.

"Lindsay" wrote:

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay

  #7  
Old May 1st, 2009, 02:29 PM posted to microsoft.public.access.reports
Lindsay
external usenet poster
 
Posts: 76
Default Need help with combo box lookup reference in a report

Hi Karl,

Thanks for your help anyway.

Lindsay

"KARL DEWEY" wrote:

I missed something in your eariler post --
"In the Projects table, only the DevelopmentPhase field is shown in a
combo box. Multiple values are allowed/selected."
and
"There is also a sub-field in the Projects table called
DevelopmentPhase.Value"

It appears that your table has a LookUp field. All that I have read says
that is a terrible thing to use.

I can not help you with your problem. You need to start a new thread for
someone else to help.
"Lindsay" wrote:

SELECT [Development Phases].ID, [Development Phases].Code, [Development
Phases].DevelopmentPhase, Projects.DevelopmentPhase,
Projects.DevelopmentPhase.Value, Projects.ID, Projects.[Sort order],
Projects.ProjectName, Projects.City, Projects.State
FROM [Development Phases], Projects;


"KARL DEWEY" wrote:

Create a query in design view with both 'Projects' and 'Development Phases'
tables.
Pull down all fields from both tables to the FIELD row of the grid.
Click on VIEW _ SQL View, highlight all, copy, and paste in a post.

"Lindsay" wrote:

Hi Karl,

I'm sorry, but I can't figure out how to get the query to work. I can only
get it to match a Development Phase to every single "Code" (letter) . Which
is not correct. There is also a sub-field in the Projects table called
DevelopmentPhase.Value, but when I try to pull that into the query, I get an
error message about ambiguous outer joins.

Thanks,
Lindsay

"KARL DEWEY" wrote:

You can use a query to feed your report where 'Projects' table is joined to
'Development Phases' on ID and include Code in query output.

"Lindsay" wrote:

I have a form called "Project Snapshot" that is based on a table called
"Projects". The table has a field called [DevelopmentPhases] that is a
lookup reference to another table "Development Phases" with 3 fields (1 - ID
(primary key), 2 - Code (a letter), 3 - DevelopmentPhase (long text that
corresponds to that letter). In the Projects table, only the
DevelopmentPhase field is shown in a combo box. Multiple values are
allowed/selected.

I want to run a report that shows the corresponding letters (field "Code"
from the "Development Phases" table) but not the text (field
"DevelopmentPhase" from the "Development Phases" table). But I'm completely
stumped and can't figure out how. All I can get is a list of the text.

Two solutions I can think of, but can't actually do a
1. Adding the letter to the front of the text and using code to display only
the first character of that field for each text value in the series.
2. Lookup the corresponding letter from the "Code" field in the "Development
Phases" table and replace the each text value in the series with the
corresponding letter.

Any help would be greatly appreciated!

Thanks,
Lindsay

 




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 02:34 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.