Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Access 2003 - Forms & Sub Foms

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Access 2003 - Forms & Sub Foms
nicolasmith12[ at ]hotmail.com 29.09.2006 11:25:20

I'm new to Forms and Sub Forms, so I could do with some help. I have 2
tables A and B, both have multiple fields, but both tables have a
Postcode field.

Table A has one record per postcode
Table B has Multiple entries per postcode.

I need to set up a main form based on table A that can be filtered
based upon postcode. When a user filters for a particular postcode, as
well aspopulating the fields in the main form; I would like the
sub-form in turn to return all entries in Table B for that same
postcode.

Is this possible? I hope I have explained my problem clearly.

All feedback gratefully recieved.


Thanks

Re: Access 2003 - Forms & Sub Foms
"Arvin Meyer [MVP]" <a[ at ]m.com> 29.09.2006 11:40:32
If the subform and mainform Link Fields are set to the post code field, that
will be automatic.

Look on the form's property sheet. Select the subform, in Design View, open
the property sheet, click on the Data tab, and match the fields from each
form in the Link Master and Link Child properties.
--
Arvin Meyer, MCP, MVP
Free MS-Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

<nicolasmith12[ at ]hotmail.com> wrote in message
news:1159529120.655164.237540[ at ]e3g2000cwe.googlegroups.com...
[Quoted Text]
>
> I'm new to Forms and Sub Forms, so I could do with some help. I have 2
> tables A and B, both have multiple fields, but both tables have a
> Postcode field.
>
> Table A has one record per postcode
> Table B has Multiple entries per postcode.
>
> I need to set up a main form based on table A that can be filtered
> based upon postcode. When a user filters for a particular postcode, as
> well aspopulating the fields in the main form; I would like the
> sub-form in turn to return all entries in Table B for that same
> postcode.
>
> Is this possible? I hope I have explained my problem clearly.
>
> All feedback gratefully recieved.
>
>
> Thanks
>


Re: Access 2003 - Forms & Sub Foms
nicolasmith12[ at ]hotmail.com 29.09.2006 13:26:04
I have checked this. and set it as you have suggested.

Yet some of the fields in my main form are not being populated. Why
might this be?

For example:

My main form uses table A:
Fields include:
Postcode
Group Ref1
Group Ref2

When I filter for a postcode the latter two fields do not lick up info
from the table.

Running the filter on the main form should prompt the subform to
display:
All the records found in Table B with that particular postcode.


Arvin Meyer [MVP] wrote:
[Quoted Text]
> If the subform and mainform Link Fields are set to the post code field, that
> will be automatic.
>
> Look on the form's property sheet. Select the subform, in Design View, open
> the property sheet, click on the Data tab, and match the fields from each
> form in the Link Master and Link Child properties.
> --
> Arvin Meyer, MCP, MVP
> Free MS-Access downloads:
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> <nicolasmith12[ at ]hotmail.com> wrote in message
> news:1159529120.655164.237540[ at ]e3g2000cwe.googlegroups.com...
> >
> > I'm new to Forms and Sub Forms, so I could do with some help. I have 2
> > tables A and B, both have multiple fields, but both tables have a
> > Postcode field.
> >
> > Table A has one record per postcode
> > Table B has Multiple entries per postcode.
> >
> > I need to set up a main form based on table A that can be filtered
> > based upon postcode. When a user filters for a particular postcode, as
> > well aspopulating the fields in the main form; I would like the
> > sub-form in turn to return all entries in Table B for that same
> > postcode.
> >
> > Is this possible? I hope I have explained my problem clearly.
> >
> > All feedback gratefully recieved.
> >
> >
> > Thanks
> >

Re: Access 2003 - Forms & Sub Foms
"Arvin Meyer [MVP]" <a[ at ]m.com> 01.10.2006 00:55:42
One possibility is a slight difference in the PostCode caused by an input
mask, or even formatting that makes them appear that they are the same.
Unless the data is different, they should all work.
--
Arvin Meyer, MCP, MVP
Free MS-Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

<nicolasmith12[ at ]hotmail.com> wrote in message
news:1159536363.966215.165260[ at ]m7g2000cwm.googlegroups.com...
[Quoted Text]
>I have checked this. and set it as you have suggested.
>
> Yet some of the fields in my main form are not being populated. Why
> might this be?
>
> For example:
>
> My main form uses table A:
> Fields include:
> Postcode
> Group Ref1
> Group Ref2
>
> When I filter for a postcode the latter two fields do not lick up info
> from the table.
>
> Running the filter on the main form should prompt the subform to
> display:
> All the records found in Table B with that particular postcode.
>
>
> Arvin Meyer [MVP] wrote:
>> If the subform and mainform Link Fields are set to the post code field,
>> that
>> will be automatic.
>>
>> Look on the form's property sheet. Select the subform, in Design View,
>> open
>> the property sheet, click on the Data tab, and match the fields from each
>> form in the Link Master and Link Child properties.
>> --
>> Arvin Meyer, MCP, MVP
>> Free MS-Access downloads:
>> http://www.datastrat.com
>> http://www.mvps.org/access
>> http://www.accessmvp.com
>>
>> <nicolasmith12[ at ]hotmail.com> wrote in message
>> news:1159529120.655164.237540[ at ]e3g2000cwe.googlegroups.com...
>> >
>> > I'm new to Forms and Sub Forms, so I could do with some help. I have 2
>> > tables A and B, both have multiple fields, but both tables have a
>> > Postcode field.
>> >
>> > Table A has one record per postcode
>> > Table B has Multiple entries per postcode.
>> >
>> > I need to set up a main form based on table A that can be filtered
>> > based upon postcode. When a user filters for a particular postcode, as
>> > well aspopulating the fields in the main form; I would like the
>> > sub-form in turn to return all entries in Table B for that same
>> > postcode.
>> >
>> > Is this possible? I hope I have explained my problem clearly.
>> >
>> > All feedback gratefully recieved.
>> >
>> >
>> > Thanks
>> >
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net