473,418 Members | 2,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Continuous forms with subforms

Hi NG

I need some help with a problem on my forms.

If I have 2 related tables, for instance companies and employees, and want
to display all companies on a continuous form with their employees on a sub
form as another continuous form, as shown below

Northwind

Carl Jensen

Dave Smith

Eastwind

Paul Allen

Susan Vincent

Brit Anderson

Southwind

Peter Simson

But as the number of employees varies on the companies, I would like the
subform to have the proper size to contain the number of employees on each
company.

So I got 2 problems, first, is there a way to simulate the property CanGrow
in form view? Maybe individually resizing the subform control on each
continuous form?

And secondly, resize each continuous form to fit the size of the subform.

Hope this makes sense, I will appreciate any input

And please bear with me for any incorrect language J

Best regards

Stef
Nov 6 '08 #1
8 11610
You can't have subforms on a continuous form, period.

If you can tolerate the limitations of the view, you could use a form in
datasheet view; the subform would then become a sub-datasheet.

"Steffen Beck" <sb@nospamsrd.dkwrote in message
news:49***********************@dtext01.news.tele.d k...
Hi NG

I need some help with a problem on my forms.

If I have 2 related tables, for instance companies and employees, and want
to display all companies on a continuous form with their employees on a
sub form as another continuous form, as shown below

Northwind

Carl Jensen

Dave Smith

Eastwind

Paul Allen

Susan Vincent

Brit Anderson

Southwind

Peter Simson

But as the number of employees varies on the companies, I would like the
subform to have the proper size to contain the number of employees on each
company.

So I got 2 problems, first, is there a way to simulate the property
CanGrow in form view? Maybe individually resizing the subform control on
each continuous form?

And secondly, resize each continuous form to fit the size of the subform.

Hope this makes sense, I will appreciate any input

And please bear with me for any incorrect language J

Best regards

Stef


Nov 7 '08 #2

"bcap" <bc**@nospam.nowhereskrev i en meddelelse
news:49***********************@news.zen.co.uk...
You can't have subforms on a continuous form, period.

If you can tolerate the limitations of the view, you could use a form in
datasheet view; the subform would then become a sub-datasheet.

Wow

I've been working with Access since version 1.1, and it's the first time I
realized this limitation
You never stop learning something new :-) Thanks
But, isn't there some sort of work around? Any ideas?
I don't want any funcionality on the form, almost just displayed as report

Best regards
Stef
Nov 7 '08 #3

"Steffen Beck" <sb@nospamsrd.dkwrote in message
news:49***********************@dtext01.news.tele.d k...
>
"bcap" <bc**@nospam.nowhereskrev i en meddelelse
news:49***********************@news.zen.co.uk...
>You can't have subforms on a continuous form, period.

If you can tolerate the limitations of the view, you could use a form in
datasheet view; the subform would then become a sub-datasheet.


Wow

I've been working with Access since version 1.1, and it's the first time I
realized this limitation
You never stop learning something new :-) Thanks
But, isn't there some sort of work around? Any ideas?
I don't want any funcionality on the form, almost just displayed as
report

Best regards
Stef

As I said, you could use a datasheet/sub-datasheet set-up. Or open a report
in preview...
Nov 7 '08 #4
On Nov 7, 5:43*am, "Steffen Beck" <s...@nospamsrd.dkwrote:
"bcap" <b...@nospam.nowhereskrev i en meddelelsenews:49***********************@news.zen. co.uk...
You can't have subforms on a continuous form, period.
If you can tolerate the limitations of the view, you could use a form in
datasheet view; the subform would then become a sub-datasheet.

Wow

I've been working with Access since version 1.1, and it's the first time I
realized this limitation
You never stop learning something new :-) Thanks

But, isn't there some sort of work around? Any ideas?
I don't want any funcionality on the form, *almost just displayed as report

Best regards
Stef
For the past ten years or so I have rarely used subforms. Instead I
create and use my own "child" forms.

I open and place my own child form on my main form's opening, often
just to the right of my main form, which I place at (0,0).
I update my child form's recordsource and requery it in the OnCurrent
Event Code of my main form.
I close my child form on my main form's closing.

There are many reasons. One is the topic of this discussion.

I discuss this a bit more fully in
http://groups.google.com/group/comp....bc13deac192275

Nov 7 '08 #5

"Steffen Beck" <sb@nospamsrd.dkskrev i en meddelelse
news:49***********************@dtext01.news.tele.d k...
>
"bcap" <bc**@nospam.nowhereskrev i en meddelelse
news:49***********************@news.zen.co.uk...
>You can't have subforms on a continuous form, period.

If you can tolerate the limitations of the view, you could use a form in
datasheet view; the subform would then become a sub-datasheet.
Thanks for your suggestions, I will take a closer look, but it seems like
there is no way I can get exactly what I want

Best regards

Stef
Nov 7 '08 #6

"Steffen Beck" <sb@nospamsrd.dkwrote in message
news:49***********************@dtext01.news.tele.d k...
>
"bcap" <bc**@nospam.nowhereskrev i en meddelelse
news:49***********************@news.zen.co.uk...
You can't have subforms on a continuous form, period.

If you can tolerate the limitations of the view, you could use a form in
datasheet view; the subform would then become a sub-datasheet.

Wow

I've been working with Access since version 1.1, and it's the first time I
realized this limitation
You never stop learning something new :-) Thanks
But, isn't there some sort of work around? Any ideas?
I don't want any funcionality on the form, almost just displayed as
report
>
Best regards
Stef

Place the fields in the main form on a subform then create a unbound main
form to hold both subforms. When you select new records on the primary
subfrom, update the recordsource on the 2nd subfrom. Depending on the
layout, you may need to place the subforms in different section of the main
form.
Nov 7 '08 #7
On Nov 7, 6:58*pm, "bcap" <b...@nospam.nowherewrote:
You can't have subforms on a continuous form, period.
You can have subforms in the footer of a continuous form.
Nov 8 '08 #8
Steffen Beck wrote:
Thanks for your suggestions, I will take a closer look, but it seems like
there is no way I can get exactly what I want
There is almost always a way to do something; you just have to weight
the cost/benefit.

You could create your own unbound form with as many controls as you like
but you'll have to handle the coding to make it all work.

--
'--------------------------
' John Mishefske
' UtterAccess Editor
' Microsoft MVP 2007, 2008
'--------------------------
Nov 9 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
6
by: Rose | last post by:
I have set my form's default view property to continuous forms and have added a field for the table columns I wish to view. What do I need to do to allow more than one record to show at the same...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
1
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
3
by: Steve Antrobus | last post by:
Hello all, I've seen many discussions regarding continuous forms in Access and how to highlight individual rows and they all seem to suggest conditional formatting as the only way. This is...
1
by: rpboll | last post by:
I am looking for the best way to accomplish the following continuous forms concept. There are Five Groups: A, B, C, D, E Each group has eight Members: a, b, c, d, e, f, g, h Each...
7
by: Dave | last post by:
Hello All, These one may be a bit tricky, and what I'd like to do may not even be possible. I would love to hear any ideas you guys have for solving this. Here is the situation: I have a form...
0
by: BillE | last post by:
I'm wondering how others have addressed UI requirements for Access-style continuous forms and sub-forms in a windows forms application (besides third-party products). Thanks Bill
5
by: grahamib | last post by:
I have a form running in access 2003. The forms property is set to continuous forms so that all records from an underlying query can be diaplayed. On the form are 12 sets of fields from...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.