473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Continuous form behavior

In a continuous form I would like to force a specific record to the top of
the screen. I can use DoCmd.GotoRecord to go to the record that I want, but
how can I adjust the display so that record appears at the top of the
screen?
Nov 12 '05 #1
11 10077
Well, if you still have Access 97, you can do it with DoCmd.GoToPage with a
blank page number argument. In Access 200 and above, the page number
argument is no longer optional, so you can't do that even though the help
stillsays to leave out the page number argument to use the current page.

On Sun, 28 Sep 2003 06:09:52 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:
In a continuous form I would like to force a specific record to the top of
the screen. I can use DoCmd.GotoRecord to go to the record that I want, but
how can I adjust the display so that record appears at the top of the
screen?


Nov 12 '05 #2
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:u5********************************@4ax.com...
Well, if you still have Access 97, you can do it with DoCmd.GoToPage with a blank page number argument. In Access 200 and above, the page number
argument is no longer optional, so you can't do that even though the help
stillsays to leave out the page number argument to use the current page.

On Sun, 28 Sep 2003 06:09:52 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:
In a continuous form I would like to force a specific record to the top ofthe screen. I can use DoCmd.GotoRecord to go to the record that I want, buthow can I adjust the display so that record appears at the top of the
screen?


I should have said that I am using Access 2000.
Nov 12 '05 #3
On Sun, 28 Sep 2003 06:42:57 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:u5********************************@4ax.com.. .
Well, if you still have Access 97, you can do it with DoCmd.GoToPage with

a
blank page number argument. In Access 200 and above, the page number
argument is no longer optional, so you can't do that even though the help
stillsays to leave out the page number argument to use the current page.

On Sun, 28 Sep 2003 06:09:52 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:
>In a continuous form I would like to force a specific record to the topof >the screen. I can use DoCmd.GotoRecord to go to the record that I want,but >how can I adjust the display so that record appears at the top of the
>screen?
>


I should have said that I am using Access 2000.


Then I really wish I knew - for me as well as you. I sent a bug report to
Microsoft, but they have not added anything to the knowledge base about it
(big surprise).
Nov 12 '05 #4
Steve,

I've come up with an extremely clumsy work around. I'm embarrassed to show
the code, it's so bad, but if no one provides a better solution, you might
find it of use.

Const ScreenRowsShown As Integer = 10
Dim CurrentRow as Long

[Code Here...]

CurrentRow = Me.CurrentRecord
If CurrentRow < ScreenRowsShown Then
DoCmd.GoToRecord , , acLast
Else
DoCmd.GoToRecord , , acFirst
End If
DoCmd.GoToRecord , , acGoTo, CurrentRow

Like I said, kludgey, but it gets the current record to the top of the
screen.
Randy
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:ad********************************@4ax.com...
On Sun, 28 Sep 2003 06:42:57 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:u5********************************@4ax.com.. .
Well, if you still have Access 97, you can do it with DoCmd.GoToPage with
a
blank page number argument. In Access 200 and above, the page number
argument is no longer optional, so you can't do that even though the
help stillsays to leave out the page number argument to use the current page.
On Sun, 28 Sep 2003 06:09:52 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:

>In a continuous form I would like to force a specific record to the

topof
>the screen. I can use DoCmd.GotoRecord to go to the record that I
want,but
>how can I adjust the display so that record appears at the top of the
>screen?
>


I should have said that I am using Access 2000.


Then I really wish I knew - for me as well as you. I sent a bug report to
Microsoft, but they have not added anything to the knowledge base about it
(big surprise).

Nov 12 '05 #5
Randy Harris wrote:
In a continuous form I would like to force a specific record to the top of
the screen. I can use DoCmd.GotoRecord to go to the record that I want, but
how can I adjust the display so that record appears at the top of the
screen?


When all else fails, go to Stephen Lebans' site ;-)
I think his SetGetSB db has a way to do what you want.
www.lebans.com

--
Marsh
Nov 12 '05 #6
Hey Marshall,
the sample form using the SelTop property is the best solution:
http://www.lebans.com/setgetsb.htm
SetGetSB.zip is a database containing functions to allow a user to Set
or Get the current position of a ScrollBar Thumb for a Form.

NEW - Apr. 02/2000 The current ScrollBar position is equal to the
current Record Number being displayed at the Top of the Form.

Works in Form or Datasheet view.

Ver 1.7

Fix bug in SelTop method. Now works with first page of rows properly and
sets the Top row correctly when moving forward in the recordset one row
at a time.

Ver 1.6

Use SelTop to save Restore current row's position after a Requery.

Ver 1.5

Added support for Horizontal ScrollBars.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Marshall Barton" <ma*********@wowway.com> wrote in message
news:3p********************************@4ax.com...
Randy Harris wrote:
In a continuous form I would like to force a specific record to the top ofthe screen. I can use DoCmd.GotoRecord to go to the record that I want, buthow can I adjust the display so that record appears at the top of the
screen?


When all else fails, go to Stephen Lebans' site ;-)
I think his SetGetSB db has a way to do what you want.
www.lebans.com

--
Marsh


Nov 12 '05 #7
ra***@SpamFree.com (Randy Harris) wrote in
<QW********************@newssvr28.news.prodigy.com >:
In a continuous form I would like to force a specific record to
the top of the screen. I can use DoCmd.GotoRecord to go to the
record that I want, but how can I adjust the display so that
record appears at the top of the screen?


Why do you care?

It sounds like a flip question, but why does something like this
make such a difference that you want to spend all the time
implementing something to do this?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #8
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:94***************************@24.168.128.90.. .
ra***@SpamFree.com (Randy Harris) wrote in
<QW********************@newssvr28.news.prodigy.com >:
In a continuous form I would like to force a specific record to
the top of the screen. I can use DoCmd.GotoRecord to go to the
record that I want, but how can I adjust the display so that
record appears at the top of the screen?
Why do you care?

It sounds like a flip question, but why does something like this
make such a difference that you want to spend all the time
implementing something to do this?


Usability. I'm making it easier for the user to locate the desired
information.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc

Nov 12 '05 #9
You can use the Form's SelTop property with a couple of lines of code to
achieve the desired results. I wrote the solution to solve the issue of
allowing the user to easily find the record they were working on, in the
exact same position within the section, after a requery or to duplicate
row positioning in the current session to match that at the end of the
last/previous session.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:94***************************@24.168.128.90.. .
ra***@SpamFree.com (Randy Harris) wrote in
<QW********************@newssvr28.news.prodigy.com >:
In a continuous form I would like to force a specific record to
the top of the screen. I can use DoCmd.GotoRecord to go to the
record that I want, but how can I adjust the display so that
record appears at the top of the screen?


Why do you care?

It sounds like a flip question, but why does something like this
make such a difference that you want to spend all the time
implementing something to do this?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc


Nov 12 '05 #10
Regrettably, SelTop doesn't seem to put the current record at the top of the
screen unless scrolling occurs. If the record is off the screen, it will.
The behavior seems exactly the same as DoCmd.GotoRecord.
"Stephen Lebans" <St***********@mvps.org> wrote in message
news:Es********************@ursa-nb00s0.nbnet.nb.ca...
You can use the Form's SelTop property with a couple of lines of code to
achieve the desired results. I wrote the solution to solve the issue of
allowing the user to easily find the record they were working on, in the
exact same position within the section, after a requery or to duplicate
row positioning in the current session to match that at the end of the
last/previous session.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:94***************************@24.168.128.90.. .
ra***@SpamFree.com (Randy Harris) wrote in
<QW********************@newssvr28.news.prodigy.com >:
In a continuous form I would like to force a specific record to
the top of the screen. I can use DoCmd.GotoRecord to go to the
record that I want, but how can I adjust the display so that
record appears at the top of the screen?


Why do you care?

It sounds like a flip question, but why does something like this
make such a difference that you want to spend all the time
implementing something to do this?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc

Nov 12 '05 #11
ra***@SpamFree.com (Randy Harris) wrote in
<Pl********************@newssvr28.news.prodigy.com >:
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:94***************************@24.168.128.90. ..
ra***@SpamFree.com (Randy Harris) wrote in
<QW********************@newssvr28.news.prodigy.com >:
>In a continuous form I would like to force a specific record to
>the top of the screen. I can use DoCmd.GotoRecord to go to the
>record that I want, but how can I adjust the display so that
>record appears at the top of the screen?


Why do you care?

It sounds like a flip question, but why does something like this
make such a difference that you want to spend all the time
implementing something to do this?


Usability. I'm making it easier for the user to locate the
desired information.


Maybe, then, a continuous form is the wrong user interface for it.

Another alternative would a navigation listbox or subform and a
detail form that displays the details of the record selected in the
listbox or navigation subform.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #12

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

Similar topics

3
by: Benjamin Z. Gregorian | last post by:
Hi there I have a problem with a database I wrote. On my access 2002 it is running without probs but on the comp of my collegue A2003 there is this weird behaviour. The form is a continuous...
1
by: tmuhammad | last post by:
Hi there, I am trying to populate a continuous form using ADO, following is the function which needs fixing, can someone kindly help me with this. Thanks much Private Sub Form_Load() On Error...
1
by: Richard Hollenbeck | last post by:
The only reason I made the continuous forms form into a subform is because I like the scrolling behavior better. For example, I don't like how the vertical scrollbar spans the height of the entire...
0
by: Steve Jorgensen | last post by:
One thing that makes Access so useful rapid development tool is the seemless way it links user interfaces to data storage. That is also one of its most maddening weaknesses, since Access doesn't...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
10
by: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show...
1
by: rpboll | last post by:
I am looking for the best way to accomplish the following continuous forms concept. There are Five Groups: A, B, C, D, E Each group has eight Members: a, b, c, d, e, f, g, h Each...
7
by: Dave | last post by:
Hello All, These one may be a bit tricky, and what I'd like to do may not even be possible. I would love to hear any ideas you guys have for solving this. Here is the situation: I have a form...
2
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.