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  

Continuous form with subform



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 02:44 AM
PF
external usenet poster
 
Posts: n/a
Default Continuous form with subform

Hi all,

Is there any way of making a form with a subform in it to
keep continuous? More still, is it possible without VB, as
my knowledge of it is almost null?

Thanks in advance.

PF
  #2  
Old June 7th, 2004, 06:27 AM
Albert D. Kallal
external usenet poster
 
Posts: n/a
Default Continuous form with subform

You can't have a contiues form, and then place inside this a antoher
continue form.

However, you can much achieve the same effivce by:

Make a nice big large blank form.

You then drop in two contiues forms. The contiues form on the left can show
the master data, and the continues form on the right can show the child
data.

There is some ideas he

http://www.attcanada.net/~kallal.msn/Articles/Grid.htm

So, build 2 grids using continues forms, or 2 forms in data sheet view.

You then create a 3rd "blank" form, and drop in the above 2 forms.

In the master form (which is now a subform), in the on current event, you
place the following command to make the child forms follow this form.

me.Parent.Child1.Requery


In the link child/master settings for child 1, you place:

linkChildFields main_id (whatever is the name of the field in
this sub-form that is used to relate back to the parent table)
LinkMasterFields [MasterForm].[form].[ID]


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada

http://www.attcanada.net/~kallal.msn


  #3  
Old June 7th, 2004, 02:42 PM
Joan Wild
external usenet poster
 
Posts: n/a
Default Continuous form with subform

"PF" wrote in message
...
Hi all,

Is there any way of making a form with a subform in it to
keep continuous? More still, is it possible without VB, as
my knowledge of it is almost null?


You can't have a continuous subform inside a continuous main form, however
you can have two continuous forms (master/child) beside each other on a main
form.

The main form would be unbound; the first subform would be bound to your
master table. Add a textbox to the main form that references the linking
field in the first subform. Name it txtLink and set its control source to
=Me!Subform1!CustomerID
changing the references in the above to reflect
Subform1 - whatever the name of the subform control is
CustomerID - the primary key in your master table

Create a second subform for your child records. Set the link master/link
child properties of the subform control to
Master - txtLink
Child - CustomerID
changing CustomerID to reflect the name of the field in the child table that
is the foreign key to 'CustomerID' in the parent.


--
Joan Wild
Microsoft Access MVP


 




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 11:03 PM.


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