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

Form & Subforms



 
 
Thread Tools Display Modes
  #1  
Old October 8th, 2009, 09:01 PM posted to microsoft.public.access.tablesdbdesign
Charess
external usenet poster
 
Posts: 16
Default Form & Subforms

Hello,

I am somewhat new to designing Access databases...

I have one master form that contains employee details and another subform
that has employee issues and another subform that contains meetings about the
employee issues.

I don't believe I have my forms are linked properly. My main form contains
employee ID, this is a lookup field which is calling the employees table.
When I enter the employee ID, all my other controls auto-populate. I then
have a command button which opens my subform Issues. I have the employee id
control in my issues form equalled to the employee ID in my Employee details
form (master form). However, when I go to add new employees and I click the
subform Issues, all the records are there, I would like to have a new record
when there is no employee id equalled to the ID in the employees table.

I am really lost and any help would be greatly appreciated.

Charess
  #2  
Old October 10th, 2009, 02:26 PM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Form & Subforms

Is there a reason why you aren't using a true subform that is located on your
main form? It sounds like you are simply opening a second form which
technically isn't a subform.

When you use subforms, you can set the Link Master/Child properties to
filter the records displayed in the subform to a field or fields in the main
form.

--
Duane Hookom
Microsoft Access MVP


"Charess" wrote:

Hello,

I am somewhat new to designing Access databases...

I have one master form that contains employee details and another subform
that has employee issues and another subform that contains meetings about the
employee issues.

I don't believe I have my forms are linked properly. My main form contains
employee ID, this is a lookup field which is calling the employees table.
When I enter the employee ID, all my other controls auto-populate. I then
have a command button which opens my subform Issues. I have the employee id
control in my issues form equalled to the employee ID in my Employee details
form (master form). However, when I go to add new employees and I click the
subform Issues, all the records are there, I would like to have a new record
when there is no employee id equalled to the ID in the employees table.

I am really lost and any help would be greatly appreciated.

Charess

 




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 04:18 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.