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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form Help



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 06:30 PM posted to microsoft.public.access.forms
Brian T
external usenet poster
 
Posts: 45
Default Form Help

Hi All,

I have a combo box to choose the Project Number (these are text format since
they alpha numeric) and I would like to automatically fill in the Project
Name in for use in a print report. I am using Access 2007. Any help with an
embedded macro would be great.

Thanks,
  #2  
Old April 15th, 2010, 06:58 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Form Help

Brian,
This is actually two questions... form vs report.
And no need for any code.
**Form:
Just add the ProjectName column to your combo box in the second
column.
ProjectNumber ProjectName

Bind the combo control to the ProjectNumber field
(you probably already do that)
Set up the combo this way...
No Of Columns = 2
Column Widths = 0" ; 1.5"
What this does is... allows you to select a project by ProjectName,
which is easier for users than knowing the ProjectNumber. The combo
will display that ProjectName... BUT... it really is storing the
ProjectNumber in the ProjectNumber field. It makes the combo do
"double duty." Save the ProjectNumber, but display the ProjectName.

**Report
Since you have the ProjectNumber value, then you just need to relate it
to the
ProjectName report's recordsource query.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Brian T" wrote in message
...
Hi All,

I have a combo box to choose the Project Number (these are text format
since
they alpha numeric) and I would like to automatically fill in the Project
Name in for use in a print report. I am using Access 2007. Any help with
an
embedded macro would be great.

Thanks,



  #3  
Old April 22nd, 2010, 07:13 PM posted to microsoft.public.access.forms
Brian T
external usenet poster
 
Posts: 45
Default Form Help

Al,

Thanks that helped.

"Al Campagna" wrote:

Brian,
This is actually two questions... form vs report.
And no need for any code.
**Form:
Just add the ProjectName column to your combo box in the second
column.
ProjectNumber ProjectName

Bind the combo control to the ProjectNumber field
(you probably already do that)
Set up the combo this way...
No Of Columns = 2
Column Widths = 0" ; 1.5"
What this does is... allows you to select a project by ProjectName,
which is easier for users than knowing the ProjectNumber. The combo
will display that ProjectName... BUT... it really is storing the
ProjectNumber in the ProjectNumber field. It makes the combo do
"double duty." Save the ProjectNumber, but display the ProjectName.

**Report
Since you have the ProjectNumber value, then you just need to relate it
to the
ProjectName report's recordsource query.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Brian T" wrote in message
...
Hi All,

I have a combo box to choose the Project Number (these are text format
since
they alpha numeric) and I would like to automatically fill in the Project
Name in for use in a print report. I am using Access 2007. Any help with
an
embedded macro would be great.

Thanks,



.

 




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 11:57 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.