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  

Subforms



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2010, 04:40 PM posted to microsoft.public.access.forms
Robert Lee
external usenet poster
 
Posts: 3
Default Subforms

I'm looking to create a subform on a tabbed form for employee and staff
information. The form, generally, will keep information regarding sales
staff at my company. On the first tab, employee information (name, title,
phone, email) will be entered. On the second tab will be the subform.

The subform is based off a query that identifies open sales opportunities.
It includes information like who the customer is, who the sales lead is, the
opening date, sales category, etc.

When using the staff information form, I'd like the subform to list all
sales opportunities for that particular staff member.

For example, if I enter "Jim Smith" as a Account Executive on the first tab,
with all his information, I'd like to click on the second tab and see the
subform identify OPEN sales opportunities for which "Jim Smith" is the sales
lead, as new opportunities are open and old ones are closed.

How do I do that?
  #2  
Old April 21st, 2010, 05:04 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Subforms

You need to establish the relationship first. You want a one-to-many
relationship between mainform and subform. Whatever you use for the primary
key, like employee ID, saleman id, or whatever, needs to be the foreign key
in the table that will produce the subform. Then build the form, add the
subform and link the master-child field on your ID number. Now you will have
established your mainform-subform link. The subform wizard would do that for
you. Then you need a combobox on the mainform for your lookup. The combobox
wizard should do that for you as well.
--
Milton Purdy
ACCESS
State of Arkansas


"Robert Lee" wrote:

I'm looking to create a subform on a tabbed form for employee and staff
information. The form, generally, will keep information regarding sales
staff at my company. On the first tab, employee information (name, title,
phone, email) will be entered. On the second tab will be the subform.

The subform is based off a query that identifies open sales opportunities.
It includes information like who the customer is, who the sales lead is, the
opening date, sales category, etc.

When using the staff information form, I'd like the subform to list all
sales opportunities for that particular staff member.

For example, if I enter "Jim Smith" as a Account Executive on the first tab,
with all his information, I'd like to click on the second tab and see the
subform identify OPEN sales opportunities for which "Jim Smith" is the sales
lead, as new opportunities are open and old ones are closed.

How do I do that?

 




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:03 AM.


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