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

Multiple Subforms from one form



 
 
Thread Tools Display Modes
  #1  
Old May 31st, 2004, 12:03 PM
Gianfranco Spiteri
external usenet poster
 
Posts: n/a
Default Multiple Subforms from one form

Hi everyone,
I have an access database which holds cases of infectious diseases. I
am currently modifyong some of the forms. I would like to know if it
is possible to change the subform which comes up according to the
selection of the user from a combobox in the parent form. For example
- if the case has chickenpox a certain subform would come up. If the
case has hepatitis a different subform would come up.
would appreciate any help,
regards
Gianfranco
  #2  
Old May 31st, 2004, 01:23 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Multiple Subforms from one form

Save the form with a subform control but nothing in it.

At runtime, assign the SourceObject property of the subform control, and set
the LinkMasterFields and LinkChildFields again.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gianfranco Spiteri" wrote in message
om...
Hi everyone,
I have an access database which holds cases of infectious diseases. I
am currently modifyong some of the forms. I would like to know if it
is possible to change the subform which comes up according to the
selection of the user from a combobox in the parent form. For example
- if the case has chickenpox a certain subform would come up. If the
case has hepatitis a different subform would come up.
would appreciate any help,
regards
Gianfranco



 




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 10:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.