PC Review


Reply
Thread Tools Rate Thread

create a form, link master and child type fields

 
 
=?Utf-8?B?RmlsZW1ha2VyUHJvX0RldmVsb3Blcg==?=
Guest
Posts: n/a
 
      1st Jan 2007
I have caseID-->caseID relationship from cases to evaluations.

There is a partyType field in both tables. I need two relationships to child
file
one for typeA and one for typeB. CaseID +TypeA and CaseID + Type B. In the
data entry subform the user can choose a list box showing which type as they
create new records. I think I only need one subform for data entry because
the type field captures the type on each datasheet. Later I can display the
data for each type in separate subforms?

In any case,I have the CaseID::caseID relationship but can't figure out how
to link the type fields?

Someone said you can link the master field and child field in the subform
linking properties. I went to control source in the subform and typed CaseID
+ partyType
and I did the same in the master form. I still can't enter data in the
form.


tia,

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      1st Jan 2007
If you have more than one field to use for the link, you type the names of
the fields separated by a semi-colon:

CaseID; partyType

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"FilemakerPro_Developer" <(E-Mail Removed)>
wrote in message news:9BABE35E-45E4-4AA4-9C30-(E-Mail Removed)...
>I have caseID-->caseID relationship from cases to evaluations.
>
> There is a partyType field in both tables. I need two relationships to
> child
> file
> one for typeA and one for typeB. CaseID +TypeA and CaseID + Type B. In
> the
> data entry subform the user can choose a list box showing which type as
> they
> create new records. I think I only need one subform for data entry
> because
> the type field captures the type on each datasheet. Later I can display
> the
> data for each type in separate subforms?
>
> In any case,I have the CaseID::caseID relationship but can't figure out
> how
> to link the type fields?
>
> Someone said you can link the master field and child field in the subform
> linking properties. I went to control source in the subform and typed
> CaseID
> + partyType
> and I did the same in the master form. I still can't enter data in the
> form.
>
>
> tia,
>



 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      1st Jan 2007
On Mon, 1 Jan 2007 12:58:01 -0800, FilemakerPro_Developer
<(E-Mail Removed)> wrote:

>Someone said you can link the master field and child field in the subform
>linking properties. I went to control source in the subform and typed CaseID
>+ partyType
>and I did the same in the master form. I still can't enter data in the
>form.
>


The person was not suggesting any Control Source.

Instead, look at the Subform properties - select the subform control,
the "box" containing the subform (not the form within that box).

It's got a Master Link Field property and a Child Link Field property.

Set them both to

[CaseID];[PartyType]

using brackets and a semicolon as a delimiter.

This will cause the subform to link by, and inherit, both mainform
fields.

John W. Vinson[MVP]
 
Reply With Quote
 
=?Utf-8?B?RmlsZW1ha2VyUHJvX0RldmVsb3Blcg==?=
Guest
Posts: n/a
 
      2nd Jan 2007
Hey John:
I did exactly as you said. I clicked on the little black box on the subform
to get the properties.It does say table name subform
however there is no Master field link or child field link.
Does that mean that I have to link them first on the table datasheets?
If so exactly which field goes where?
thanks,
--
Janis


"John Vinson" wrote:

> On Mon, 1 Jan 2007 12:58:01 -0800, FilemakerPro_Developer
> <(E-Mail Removed)> wrote:
>
> >Someone said you can link the master field and child field in the subform
> >linking properties. I went to control source in the subform and typed CaseID
> >+ partyType
> >and I did the same in the master form. I still can't enter data in the
> >form.
> >

>
> The person was not suggesting any Control Source.
>
> Instead, look at the Subform properties - select the subform control,
> the "box" containing the subform (not the form within that box).
>
> It's got a Master Link Field property and a Child Link Field property.
>
> Set them both to
>
> [CaseID];[PartyType]
>
> using brackets and a semicolon as a delimiter.
>
> This will cause the subform to link by, and inherit, both mainform
> fields.
>
> John W. Vinson[MVP]
>

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      2nd Jan 2007
On Mon, 1 Jan 2007 16:43:00 -0800, FilemakerPro_Developer
<(E-Mail Removed)> wrote:

>Hey John:
>I did exactly as you said. I clicked on the little black box on the subform
>to get the properties.It does say table name subform
>however there is no Master field link or child field link.
>Does that mean that I have to link them first on the table datasheets?
>If so exactly which field goes where?
>thanks,


You're selecting the FORM inside the subform control. See other
thread.

John W. Vinson[MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link Child Master Fields on Form/Subform issue Danny J. Lesandrini Microsoft Access 9 3rd Mar 2009 01:32 PM
A subform Link Child Fields, Link Master fields problem (newbiequestion) raylopez99 Microsoft Access Form Coding 6 25th Dec 2007 09:52 PM
Link Master and Child fields =?Utf-8?B?TGV2YW5zIGRpZ2l0YWw=?= Microsoft Access 3 5th Jun 2007 09:48 PM
Open (sub)form with command button - link master/child fields ben.biddle@gmail.com Microsoft Access Form Coding 0 17th Jan 2007 09:56 PM
Link Child / Master Fields =?Utf-8?B?Sm9obkx1dGU=?= Microsoft Access Reports 1 20th Nov 2006 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 PM.