472,358 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 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
12 1860
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
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
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...
2
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...
1
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...
6
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...
1
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...
9
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...
7
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...
4
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...
1
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...

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.