By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

Possibility to divide a tall subform to two short subforms?

P: n/a
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 sbfrmOrderDetail (based on the two above
mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetail can display
only 40 records, one has to use scrollbar to check those records after 40.
He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2

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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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
Share this Question
Share on Google+
12 Replies


P: n/a
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 sbfrmOrderDetail (based on the two above
mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetail can display
only 40 records, one has to use scrollbar to check those records after 40.
He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2

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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetail can display only 40 records, one has to use scrollbar to check those records after 40. He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2

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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetail can display only 40 records, one has to use scrollbar to check those records after 40. He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2

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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above mentioned queries, joined with OrderID)

Problem: the user complains that the subform sbfrmOrderDetail can display only 40 records, one has to use scrollbar to check those records after 40. He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2

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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetail can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetail can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
Alan,

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

Paul

"Alan Webb" <kn*****@hotmail.com> 写入消息新闻
:9_********************@comcast.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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two

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

display
> only 40 records, one has to use scrollbar to check those records after 40.
> He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetail can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:rM********************@comcast.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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two

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

display
> only 40 records, one has to use scrollbar to check those records after 40.
> He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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

P: n/a
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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two above > mentioned queries, joined with OrderID)
>
>
>
> Problem: the user complains that the subform sbfrmOrderDetail can display > only 40 records, one has to use scrollbar to check those records after 40. > He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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 #11

P: n/a
Alan,

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

Paul

"Alan Webb" <kn*****@hotmail.com> 写入消息新闻
:9_********************@comcast.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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two

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

display
> only 40 records, one has to use scrollbar to check those records after 40.
> He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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 #12

P: n/a
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*****@hotmail.com> 写入消息新闻
:rM********************@comcast.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*****@hotmail.com> 写入消息新闻
:PP********************@comcast.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 sbfrmOrderDetail (based on the two

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

display
> only 40 records, one has to use scrollbar to check those records after 40.
> He asked me if I can divide the sbfrmOrderDetail 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 sbfrmOrderDetail1 and sbfrmOrderDetail2
>
> 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 sbfrmOrderDetail1 and sbfrmOrderDetail2 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 #13

This discussion thread is closed

Replies have been disabled for this discussion.