Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change recordsource of susequent subforms-TJ

0 views
Skip to first unread message

ambushsinger

unread,
Aug 28, 2008, 3:12:01 PM8/28/08
to
I have a subform with a combo box containing User ID's ("CKENT"). The next
suform will be the user profile with listbox ("Coordinator" or "Inspector")
etc...based on the user id and a check box to show the current profile of the
selected user.
The next subform will be Contract number which shows the current contract
number being worked on.
When I change the User ID ("BWAYNE") the user profile recordsource should
update and populate the user profile and the contract number.
Any ideas???

TJ

ErezM via AccessMonster.com

unread,
Sep 3, 2008, 10:58:53 AM9/3/08
to
hi
if i got you right, you have 3 subforms on 1 main "parent" form? and you want
subforms 2 and 3 to reflect the changes made in subform 1
what you can do is set an unbound hidden field on the main (parent) form to
the chosen value in subform 1, and set subforms 2 and 3's RecordSource to
link to that unbound textbox

then inside subform 1's combo box AfterUpdate event, write "Me.Parent.Form!
TextHiddenValue=MyChosenUserID"
and requery both forms 2 and 3

i hope it makes sense to you, tell me if you need more details

--
May all beings be happy.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200809/1

ambushsinger

unread,
Sep 3, 2008, 12:20:11 PM9/3/08
to
Yes...Thank you
It makes perfect sense. Surprises me I didn't think of it.
Thanks for taking the time.
By the way...it worked perfectly.

Tom
--
ambushsinger

0 new messages