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

Subform master child link



 
 
Thread Tools Display Modes
  #1  
Old March 28th, 2010, 09:20 PM posted to microsoft.public.access
janiotjoeawie via AccessMonster.com
external usenet poster
 
Posts: 12
Default Subform master child link

Hi,

I have the following problem.
I have a form A with a subform B. On form A I have to comboboxes c and d.
On my subfrom I have two textboxes e en f.
I'am trying the following.
Creating a sellecion on the subform based on the values of c and d.
Source object: B
Link Child Field:c;d
Link Master Fields: e;f
This gives me an error of not finding e and f.
If I change Link Master Field to :c;d it returns results but only based on c;


What am I doing wrong??

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/201003/1

  #2  
Old March 28th, 2010, 10:38 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Subform master child link

On Sun, 28 Mar 2010 20:20:54 GMT, "janiotjoeawie via AccessMonster.com"
u7669@uwe wrote:

Hi,

I have the following problem.
I have a form A with a subform B. On form A I have to comboboxes c and d.
On my subfrom I have two textboxes e en f.
I'am trying the following.
Creating a sellecion on the subform based on the values of c and d.
Source object: B
Link Child Field:c;d
Link Master Fields: e;f
This gives me an error of not finding e and f.
If I change Link Master Field to :c;d it returns results but only based on c;


What am I doing wrong??


Sounds like you have it backward. The main form is the "master" and the
subform is the "child".

The Master Link Field can be either the name (or names) of a field in the
form's Recordsource, or the name of a control (textbox, combo...) on the
mainform.

The Child Link Field must be the name(s) of a field (or fields) in the
Subform's recordsource. It can't be a control.
--

John W. Vinson [MVP]
  #3  
Old March 29th, 2010, 06:02 PM posted to microsoft.public.access
janiotjoeawie via AccessMonster.com
external usenet poster
 
Posts: 12
Default Subform master child link

Thanks a lot,

I did had it backward. Geuss that is is not good looking at the same ting for
more than 3 hours



John W. Vinson wrote:
Hi,

[quoted text clipped - 10 lines]

What am I doing wrong??


Sounds like you have it backward. The main form is the "master" and the
subform is the "child".

The Master Link Field can be either the name (or names) of a field in the
form's Recordsource, or the name of a control (textbox, combo...) on the
mainform.

The Child Link Field must be the name(s) of a field (or fields) in the
Subform's recordsource. It can't be a control.


--
Message posted via http://www.accessmonster.com

 




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 06:00 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.