473,657 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possibility to divide a tall subform to two short subforms?

Is it possible to divide a tall subform with 80 records to two subforms each
with 40 records?

Dear All,

What I have: Tables: tblProduct, tblOrder, tblOrderDetail

queries: qryOrder, qryOrderDetail

Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above
mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetai l can display
only 40 records, one has to use scrollbar to check those records after 40.
He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
holds records 1 to 40, the other starts from 41 (the fact is that he has
very often records more than 40 but less than 80).

Solution:

1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2

2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to create
two queries based on qryOrderDetail: qry1 and qry2, they are copies of
qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s start
from the 41st records, both add criteria OrderID =
Forms![frmOrder]![OrderID]

3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to
qry1 and qry2 repectively.

These are just my first prompt ideas, please tell me if you think it is
possible and/or worthy doing, or there is better solution. Thank you for
your patience to read this post. Any help is very much appreciated.

Paul
Nov 13 '05 #1
12 1997
Paul,
Is your user paying for the change? What if there are 1 more records in the
order form than will display in the subforms. Even at a high resolution
setting there is a limit to the amount of screen space and a number of
records beyond which everything won't fit without scrolling. If you build a
two subform screen and there are 81 records then in one of the subforms your
user will have to scroll to see the record that didn't fit. Charge time and
a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for any
modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
Is it possible to divide a tall subform with 80 records to two subforms
each
with 40 records?

Dear All,

What I have: Tables: tblProduct, tblOrder, tblOrderDetail

queries: qryOrder, qryOrderDetail

Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above
mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetai l can display
only 40 records, one has to use scrollbar to check those records after 40.
He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
holds records 1 to 40, the other starts from 41 (the fact is that he has
very often records more than 40 but less than 80).

Solution:

1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2

2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
create
two queries based on qryOrderDetail: qry1 and qry2, they are copies of
qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s start
from the 41st records, both add criteria OrderID =
Forms![frmOrder]![OrderID]

3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to
qry1 and qry2 repectively.

These are just my first prompt ideas, please tell me if you think it is
possible and/or worthy doing, or there is better solution. Thank you for
your patience to read this post. Any help is very much appreciated.

Paul

Nov 13 '05 #2
Alan,

Thank you very much for your comment. You are very right on using srollbars.
We just can't avoid it.
The possible change is queit complicated indeed. I realize it is not a easy
task at all. I will talk
with the user next week, try to persuade him in using a bigger monitor.

Have a nice weekend, don't know where you are, we just start to have Friday
evening...

Paul
Bratislava, Slovakia, Europe
"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in the
If you build a two subform screen and there are 81 records then in one of the subforms your user will have to scroll to see the record that didn't fit. Charge time and a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for any modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
Is it possible to divide a tall subform with 80 records to two subforms
each
with 40 records?

Dear All,

What I have: Tables: tblProduct, tblOrder, tblOrderDetail

queries: qryOrder, qryOrderDetail

Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetai l can display only 40 records, one has to use scrollbar to check those records after 40. He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
holds records 1 to 40, the other starts from 41 (the fact is that he has
very often records more than 40 but less than 80).

Solution:

1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2

2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
create
two queries based on qryOrderDetail: qry1 and qry2, they are copies of
qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s start
from the 41st records, both add criteria OrderID =
Forms![frmOrder]![OrderID]

3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to qry1 and qry2 repectively.

These are just my first prompt ideas, please tell me if you think it is
possible and/or worthy doing, or there is better solution. Thank you for
your patience to read this post. Any help is very much appreciated.

Paul


Nov 13 '05 #3
PS:

I just wonder if one can move the srollbar to the end and to the beginning
through vba... then it is easy to teach users to press "PageUp" key to look
the records start from No.1 and press "PageDown" to check the records from
the last records.

Paul

"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in the order form than will display in the subforms. Even at a high resolution
setting there is a limit to the amount of screen space and a number of
records beyond which everything won't fit without scrolling. If you build a two subform screen and there are 81 records then in one of the subforms your user will have to scroll to see the record that didn't fit. Charge time and a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for any modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
Is it possible to divide a tall subform with 80 records to two subforms
each
with 40 records?

Dear All,

What I have: Tables: tblProduct, tblOrder, tblOrderDetail

queries: qryOrder, qryOrderDetail

Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetai l can display only 40 records, one has to use scrollbar to check those records after 40. He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
holds records 1 to 40, the other starts from 41 (the fact is that he has
very often records more than 40 but less than 80).

Solution:

1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2

2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
create
two queries based on qryOrderDetail: qry1 and qry2, they are copies of
qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s start
from the 41st records, both add criteria OrderID =
Forms![frmOrder]![OrderID]

3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to qry1 and qry2 repectively.

These are just my first prompt ideas, please tell me if you think it is
possible and/or worthy doing, or there is better solution. Thank you for
your patience to read this post. Any help is very much appreciated.

Paul


Nov 13 '05 #4
PS:

I just wonder if one can move the srollbar to the end and to the beginning
through vba... then it is easy to teach users to press "PageUp" key to look
the records start from No.1 and press "PageDown" to check the records from
the last records.

Paul

"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in the order form than will display in the subforms. Even at a high resolution
setting there is a limit to the amount of screen space and a number of
records beyond which everything won't fit without scrolling. If you build a two subform screen and there are 81 records then in one of the subforms your user will have to scroll to see the record that didn't fit. Charge time and a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for any modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
Is it possible to divide a tall subform with 80 records to two subforms
each
with 40 records?

Dear All,

What I have: Tables: tblProduct, tblOrder, tblOrderDetail

queries: qryOrder, qryOrderDetail

Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetai l can display only 40 records, one has to use scrollbar to check those records after 40. He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
holds records 1 to 40, the other starts from 41 (the fact is that he has
very often records more than 40 but less than 80).

Solution:

1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2

2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
create
two queries based on qryOrderDetail: qry1 and qry2, they are copies of
qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s start
from the 41st records, both add criteria OrderID =
Forms![frmOrder]![OrderID]

3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to qry1 and qry2 repectively.

These are just my first prompt ideas, please tell me if you think it is
possible and/or worthy doing, or there is better solution. Thank you for
your patience to read this post. Any help is very much appreciated.

Paul


Nov 13 '05 #5
Paul,
I got to thinking that this is essentially replacing a page up/page down for
a scroll bar. There are still page breaks in Access forms and I guess you
could dynamically insert page breaks every 40 rows with nav buttons that
moved to the first, previous, next & last pages. Still, its one of those
where I wonder if the cost is worth it.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:Sy******** **********@news .chello.at...
Alan,

Thank you very much for your comment. You are very right on using
srollbars.
We just can't avoid it.
The possible change is queit complicated indeed. I realize it is not a
easy
task at all. I will talk
with the user next week, try to persuade him in using a bigger monitor.

Have a nice weekend, don't know where you are, we just start to have
Friday
evening...

Paul
Bratislava, Slovakia, Europe
"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in

the
If you build a
two subform screen and there are 81 records then in one of the subforms

your
user will have to scroll to see the record that didn't fit. Charge time

and
a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for

any
modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
> Is it possible to divide a tall subform with 80 records to two subforms
> each
> with 40 records?
>
>
>
> Dear All,
>
>
>
> What I have: Tables: tblProduct, tblOrder, tblOrderDetail
>
> queries: qryOrder, qryOrderDetail
>
> Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetai l can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
> holds records 1 to 40, the other starts from 41 (the fact is that he
> has
> very often records more than 40 but less than 80).
>
>
>
> Solution:
>
> 1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2
>
> 2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
> ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
> create
> two queries based on qryOrderDetail: qry1 and qry2, they are copies of
> qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s
> start
> from the 41st records, both add criteria OrderID =
> Forms![frmOrder]![OrderID]
>
> 3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to > qry1 and qry2 repectively.
>
>
>
> These are just my first prompt ideas, please tell me if you think it is
> possible and/or worthy doing, or there is better solution. Thank you
> for
> your patience to read this post. Any help is very much appreciated.
>
>
>
> Paul
>
>



Nov 13 '05 #6
Paul,
Page Up/Page Down already works in Access forms without any code. With a
little training maybe the issue goes away. BTW--in the help files is a list
of shortcut keys that Microsoft included in Access forms. Point your users
to that help file article. There are some useful things in there.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:_y******** **********@news .chello.at...
PS:

I just wonder if one can move the srollbar to the end and to the beginning
through vba... then it is easy to teach users to press "PageUp" key to
look
the records start from No.1 and press "PageDown" to check the records from
the last records.

Paul

"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in

the
order form than will display in the subforms. Even at a high resolution
setting there is a limit to the amount of screen space and a number of
records beyond which everything won't fit without scrolling. If you
build

a
two subform screen and there are 81 records then in one of the subforms

your
user will have to scroll to see the record that didn't fit. Charge time

and
a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for

any
modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
> Is it possible to divide a tall subform with 80 records to two subforms
> each
> with 40 records?
>
>
>
> Dear All,
>
>
>
> What I have: Tables: tblProduct, tblOrder, tblOrderDetail
>
> queries: qryOrder, qryOrderDetail
>
> Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetai l can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
> holds records 1 to 40, the other starts from 41 (the fact is that he
> has
> very often records more than 40 but less than 80).
>
>
>
> Solution:
>
> 1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2
>
> 2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
> ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
> create
> two queries based on qryOrderDetail: qry1 and qry2, they are copies of
> qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s
> start
> from the 41st records, both add criteria OrderID =
> Forms![frmOrder]![OrderID]
>
> 3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to > qry1 and qry2 repectively.
>
>
>
> These are just my first prompt ideas, please tell me if you think it is
> possible and/or worthy doing, or there is better solution. Thank you
> for
> your patience to read this post. Any help is very much appreciated.
>
>
>
> Paul
>
>



Nov 13 '05 #7
Alan,

The Page Break is very interesting.
Just got your mail. Will try it. Thank you.

Paul

"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:9_************ ********@comcas t.com...
Paul,
I got to thinking that this is essentially replacing a page up/page down for a scroll bar. There are still page breaks in Access forms and I guess you
could dynamically insert page breaks every 40 rows with nav buttons that
moved to the first, previous, next & last pages. Still, its one of those
where I wonder if the cost is worth it.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:Sy******** **********@news .chello.at...
Alan,

Thank you very much for your comment. You are very right on using
srollbars.
We just can't avoid it.
The possible change is queit complicated indeed. I realize it is not a
easy
task at all. I will talk
with the user next week, try to persuade him in using a bigger monitor.

Have a nice weekend, don't know where you are, we just start to have
Friday
evening...

Paul
Bratislava, Slovakia, Europe
"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in
the
If you build a
two subform screen and there are 81 records then in one of the subforms

your
user will have to scroll to see the record that didn't fit. Charge
time and
a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result
set will be read only so if the order detail records should be editable then you'll need to dump the result set in some temporary tables and then for any
modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
> Is it possible to divide a tall subform with 80 records to two
subforms > each
> with 40 records?
>
>
>
> Dear All,
>
>
>
> What I have: Tables: tblProduct, tblOrder, tblOrderDetail
>
> queries: qryOrder, qryOrderDetail
>
> Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two

above
> mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetai l can

display
> only 40 records, one has to use scrollbar to check those records after 40.
> He asked me if I can divide the sbfrmOrderDetai l into two subforms,
one > holds records 1 to 40, the other starts from 41 (the fact is that he
> has
> very often records more than 40 but less than 80).
>
>
>
> Solution:
>
> 1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2
>
> 2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID, > ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
> create
> two queries based on qryOrderDetail: qry1 and qry2, they are copies of > qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s
> start
> from the 41st records, both add criteria OrderID =
> Forms![frmOrder]![OrderID]
>
> 3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to
> qry1 and qry2 repectively.
>
>
>
> These are just my first prompt ideas, please tell me if you think it

is > possible and/or worthy doing, or there is better solution. Thank you
> for
> your patience to read this post. Any help is very much appreciated.
>
>
>
> Paul
>
>



Nov 13 '05 #8
Paul,
I got to thinking that this is essentially replacing a page up/page down for
a scroll bar. There are still page breaks in Access forms and I guess you
could dynamically insert page breaks every 40 rows with nav buttons that
moved to the first, previous, next & last pages. Still, its one of those
where I wonder if the cost is worth it.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:Sy******** **********@news .chello.at...
Alan,

Thank you very much for your comment. You are very right on using
srollbars.
We just can't avoid it.
The possible change is queit complicated indeed. I realize it is not a
easy
task at all. I will talk
with the user next week, try to persuade him in using a bigger monitor.

Have a nice weekend, don't know where you are, we just start to have
Friday
evening...

Paul
Bratislava, Slovakia, Europe
"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in

the
If you build a
two subform screen and there are 81 records then in one of the subforms

your
user will have to scroll to see the record that didn't fit. Charge time

and
a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result set
will be read only so if the order detail records should be editable then
you'll need to dump the result set in some temporary tables and then for

any
modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
> Is it possible to divide a tall subform with 80 records to two subforms
> each
> with 40 records?
>
>
>
> Dear All,
>
>
>
> What I have: Tables: tblProduct, tblOrder, tblOrderDetail
>
> queries: qryOrder, qryOrderDetail
>
> Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetai l can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetai l into two subforms, one
> holds records 1 to 40, the other starts from 41 (the fact is that he
> has
> very often records more than 40 but less than 80).
>
>
>
> Solution:
>
> 1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2
>
> 2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID,
> ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
> create
> two queries based on qryOrderDetail: qry1 and qry2, they are copies of
> qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s
> start
> from the 41st records, both add criteria OrderID =
> Forms![frmOrder]![OrderID]
>
> 3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to > qry1 and qry2 repectively.
>
>
>
> These are just my first prompt ideas, please tell me if you think it is
> possible and/or worthy doing, or there is better solution. Thank you
> for
> your patience to read this post. Any help is very much appreciated.
>
>
>
> Paul
>
>



Nov 13 '05 #9
Alan,

I think I will not do it. Rather train the user to use the PageDown and
PageUp to check the records in the subform.

regards,

Paul

"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:rM************ ********@comcas t.com...
Paul,
Page Up/Page Down already works in Access forms without any code. With a
little training maybe the issue goes away. BTW--in the help files is a list of shortcut keys that Microsoft included in Access forms. Point your users to that help file article. There are some useful things in there.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:_y******** **********@news .chello.at...
PS:

I just wonder if one can move the srollbar to the end and to the beginning through vba... then it is easy to teach users to press "PageUp" key to
look
the records start from No.1 and press "PageDown" to check the records from the last records.

Paul

"Alan Webb" <kn*****@hotmai l.com> дÈëÏûÏ¢ÐÂÎÅ
:PP************ ********@comcas t.com...
Paul,
Is your user paying for the change? What if there are 1 more records in
the
order form than will display in the subforms. Even at a high
resolution setting there is a limit to the amount of screen space and a number of
records beyond which everything won't fit without scrolling. If you
build

a
two subform screen and there are 81 records then in one of the subforms

your
user will have to scroll to see the record that didn't fit. Charge time and
a half for this one and if your client is willing to pay, go for it.
Now, Top N will work but you need to sort the result set. The result
set will be read only so if the order detail records should be editable then you'll need to dump the result set in some temporary tables and then for any
modified records, post the changes back to the soure tables.

"Paul T. RONG" <et***@hotmail. com> wrote in message
news:qM******** **********@news .chello.at...
> Is it possible to divide a tall subform with 80 records to two
subforms > each
> with 40 records?
>
>
>
> Dear All,
>
>
>
> What I have: Tables: tblProduct, tblOrder, tblOrderDetail
>
> queries: qryOrder, qryOrderDetail
>
> Forms: form frmOrder and subform sbfrmOrderDetai l (based on the two

above
> mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetai l can

display
> only 40 records, one has to use scrollbar to check those records after 40.
> He asked me if I can divide the sbfrmOrderDetai l into two subforms,
one > holds records 1 to 40, the other starts from 41 (the fact is that he
> has
> very often records more than 40 but less than 80).
>
>
>
> Solution:
>
> 1. to make two subforms sbfrmOrderDetai l1 and sbfrmOrderDetai l2
>
> 2. there are 6 fields in qryOrderDetail: OrderDetailID, OrderID, > ProductID, Price, Quantity, Total (that is [Price] * [Quantity]). to
> create
> two queries based on qryOrderDetail: qry1 and qry2, they are copies of > qryOrderDetail, but strict qry1¡¯s TopValues to 40, strict qry2¡¯s
> start
> from the 41st records, both add criteria OrderID =
> Forms![frmOrder]![OrderID]
>
> 3. set the recordsouce of sbfrmOrderDetai l1 and sbfrmOrderDetai l2 to
> qry1 and qry2 repectively.
>
>
>
> These are just my first prompt ideas, please tell me if you think it

is > possible and/or worthy doing, or there is better solution. Thank you
> for
> your patience to read this post. Any help is very much appreciated.
>
>
>
> Paul
>
>



Nov 13 '05 #10

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

Similar topics

0
2349
by: CSDunn | last post by:
Hello, In Access ADP's that connect to SQL Server databases, any time I have a situation where I have a combo box in a main form that looks up a record in a subform, the subform record source has to be based on either a View or a Table. I can almost always use a View, and it helps to do this since I can have better control over the size of the RecordSet of the subform. There are times when the use of a Stored Procedure would give me...
2
343
by: Claude | last post by:
Let' say we have an application for a production facility running 24/7 broken into 3 shifts 6-2,2-10,10-6 each production report date contains 3 shifts as above in each shift there can be from one to several different product runs (the average is about 4) but it could be more or less - it's not defined or definite for many reasons Then, for each run there is a production report of product, good pieces,
1
8474
by: John Michael | last post by:
I have a form that has a subform that has a subform. The subform loads a record based on a combo lookup box in the main form. I'm trying to set a value in the subform based on a value in a subform of the subform. the main Form is called Subform is called Subform in the subform is called
6
3936
by: Sally | last post by:
I need to be able to click in a subform and run code but at the same time I need to be able to scroll the records without running the code. I tried coding the Enter event of the subform control but when I try to scroll the records the code runs. The subform is continuous; all the controls are on one line and the detail section is not exsposed above or below the controls. I tried coding the detail Click event but nothing happened. I tried...
1
3233
by: google | last post by:
I have a form with several subforms. Users enter the data, then on the parent there is a command button that runs code to generate a .pdf document from a report based on the data they are working with. If a user enters data in a subform, then directly clicks the command button on the parent form, the data in the subform is not included in their document. I THOUGHT that as soon as focus left the subform, any pending changes to the data...
9
9682
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a master-child link to the first subform. subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK Child Field: TrainingModuleTopicSK
7
12297
by: ApexData | last post by:
I am using the following code in my TabControl to manage subform loads. The code assigns the subForms SourceObject. - Do I also need code to DeAssign the SourceObject when leaving the Tab, I'm thinking the Table will stay open otherwise ??? - Do I also need to use code to Assign the Child&Master Links, or can I just type the names into the subForms Control Property and just depend on the SourceObject to link to Table???
4
5878
by: Henrootje | last post by:
I have a REPORT with in it a subFORM Now I have this label (lblMonth) that I want to change. How should I do this? What would be the proper event to do this? The lblMonth should contain the name of the month as jan 07 Any ideas?
1
3242
by: veteranwebdesign | last post by:
Hello, I have a main form. I want forms to open in a subform control box. What is the code for the option group to open the subforms in the control box. I didn't create subforms, I created regular forms, but will create subforms if that is needed for this to work. My main goal is when a user clicks on a menu item and comes to a main
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.