dbTalk Databases Forums  

Subform help! Child/Master fields keep repopulating!

comp.databases.ms-access comp.databases.ms-access


Discuss Subform help! Child/Master fields keep repopulating! in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jonceramic
 
Posts: n/a

Default Subform help! Child/Master fields keep repopulating! - 10-14-2008 , 11:17 PM






Hi,

I have a 2 subform form, which uses the selection of a row in subform
1 to show a set of rows in subform 2.

I have my queries pointing directly to fields on my form to choose
what data is shown.

However, when I first populated this form with my subforms, I was dumb
(apparently) and had it accidentally pick "List_ID" as my child/master
field for subform 2.

Now, when I wipe out List_ID as my child/master field. The form works
perfectly when it first opens.

But, the second I choose/change anything on my form. Presto/chango,
my nemesis - List_ID is back in the spot limiting my data in Subform
2. Blargh.

WTF! I'm on Access 2003. And I'm going to try to add the subform to
the form without setting any child/masterfields.

But, does anyone know what I'm doing wrong? I've cleared "List_ID" in
both the properties window and the little ... popup.

TIA,

Jon

Reply With Quote
  #2  
Old   
jonceramic
 
Posts: n/a

Default Re: Subform help! Child/Master fields keep repopulating! - 10-14-2008 , 11:33 PM






On Oct 14, 11:17*pm, jonceramic <joncera... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

I have a 2 subform form, which uses the selection of a row in subform
1 to show a set of rows in subform 2.

I have my queries pointing directly to fields on my form to choose
what data is shown.

However, when I first populated this form with my subforms, I was dumb
(apparently) and had it accidentally pick "List_ID" as my child/master
field for subform 2.

Now, when I wipe out List_ID as my child/master field. *The form works
perfectly when it first opens.

But, the second I choose/change anything on my form. *Presto/chango,
my nemesis - List_ID is back in the spot limiting my data in Subform
2. *Blargh.

WTF! *I'm on Access 2003. *And I'm going to try to add the subform to
the form without setting any child/masterfields.

But, does anyone know what I'm doing wrong? *I've cleared "List_ID" in
both the properties window and the little ... popup.

TIA,

Jon
Update:
Recreating the field didn't help.

Since I'm using the same form table as I'm using the in the query for
subform 2, I decided that it was probably some name autocorrect thing
going on. (I have a join so that everything from my "seed" contacts
table is show, and on my "chosen" contacts table, only those with
matching "List_ID"'s are joined.)

So, I changed the List_ID to be named "FakeList_ID" via a query
expression, and now everything shows up. As planned. Without it
reinserting List_ID/List_ID as my master/Child relationship. But, I
wish I didn't have to do this.

Still looking for a clue for a better fix.

Thanks,

Jon


Reply With Quote
  #3  
Old   
Salad
 
Posts: n/a

Default Re: Subform help! Child/Master fields keep repopulating! - 10-15-2008 , 07:23 AM



jonceramic wrote:
Quote:
Hi,

I have a 2 subform form, which uses the selection of a row in subform
1 to show a set of rows in subform 2.

I have my queries pointing directly to fields on my form to choose
what data is shown.

However, when I first populated this form with my subforms, I was dumb
(apparently) and had it accidentally pick "List_ID" as my child/master
field for subform 2.

Now, when I wipe out List_ID as my child/master field. The form works
perfectly when it first opens.

But, the second I choose/change anything on my form. Presto/chango,
my nemesis - List_ID is back in the spot limiting my data in Subform
2. Blargh.

WTF! I'm on Access 2003. And I'm going to try to add the subform to
the form without setting any child/masterfields.

But, does anyone know what I'm doing wrong? I've cleared "List_ID" in
both the properties window and the little ... popup.

TIA,

Jon
You probably needed to set the Listbox to the new value first. Ex:
Forms!MainForm!ListBox = Me.IDValue 'change to your names
Forms!MainForm!SF2.Form.Requery

You could set the filter manually as well
Forms!MainForm!SF2.Form.Filter = Me.IDValue
Forms!MainForm!SF2.Form.FilterOn = True




Reply With Quote
  #4  
Old   
rquintal@sympatico.ca
 
Posts: n/a

Default Re: Subform help! Child/Master fields keep repopulating! - 10-15-2008 , 11:30 AM



On Oct 15, 12:33*am, jonceramic <joncera... (AT) gmail (DOT) com> wrote:
Quote:
On Oct 14, 11:17*pm, jonceramic <joncera... (AT) gmail (DOT) com> wrote:





Hi,

I have a 2 subform form, which uses the selection of a row in subform
1 to show a set of rows in subform 2.

I have my queries pointing directly to fields on my form to choose
what data is shown.

However, when I first populated this form with my subforms, I was dumb
(apparently) and had it accidentally pick "List_ID" as my child/master
field for subform 2.

Now, when I wipe out List_ID as my child/master field. *The form works
perfectly when it first opens.

But, the second I choose/change anything on my form. *Presto/chango,
my nemesis - List_ID is back in the spot limiting my data in Subform
2. *Blargh.

WTF! *I'm on Access 2003. *And I'm going to try to add the subform to
the form without setting any child/masterfields.

But, does anyone know what I'm doing wrong? *I've cleared "List_ID" in
both the properties window and the little ... popup.

TIA,

Jon

Update:
Recreating the field didn't help.

Since I'm using the same form table as I'm using the in the query for
subform 2, I decided that it was probably some name autocorrect thing
going on. *(I have a join so that everything from my "seed" contacts
table is show, and on my "chosen" contacts table, only those with
matching "List_ID"'s are joined.)

So, I changed the List_ID to be named "FakeList_ID" via a query
expression, and now everything shows up. *As planned. *Without it
reinserting List_ID/List_ID as my master/Child relationship. *But, I
wish I didn't have to do this.

Still looking for a clue for a better fix.

Thanks,

Jon- Hide quoted text -

- Show quoted text -
Turn off the Name Autocorrupt thing, from the menu bar->Tools->Options-
Quote:
Gweneral(Tab)->Name Autocorrect->Track Name Autocorrect Info.
Q


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.