In a continuous form I would like to force a specific record to the top of
the screen. I can use DoCmd.GotoRecor d 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? 11 10111
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.GotoRecor d 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?
"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:u5******** *************** *********@4ax.c om... 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.GotoRecor d 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.
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.GotoRecor d 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).
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.CurrentRecor d
If CurrentRow < ScreenRowsShown Then
DoCmd.GoToRecor d , , acLast
Else
DoCmd.GoToRecor d , , acFirst
End If
DoCmd.GoToRecor d , , 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.c om... 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
witha 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.GotoRecor d 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).
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.GotoRecor d 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
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*********@wo wway.com> wrote in message
news:3p******** *************** *********@4ax.c om... Randy Harris wrote:
In a continuous form I would like to force a specific record to the
top ofthe screen. I can use DoCmd.GotoRecor d 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 ra***@SpamFree. com (Randy Harris) wrote in
<QW************ ********@newssv r28.news.prodig y.com>: In a continuous form I would like to force a specific record to the top of the screen. I can use DoCmd.GotoRecor d 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
"David W. Fenton" <dX********@bwa y.net.invalid> wrote in message
news:94******** *************** ****@24.168.128 .90... ra***@SpamFree. com (Randy Harris) wrote in <QW************ ********@newssv r28.news.prodig y.com>:
In a continuous form I would like to force a specific record to the top of the screen. I can use DoCmd.GotoRecor d 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
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********@bwa y.net.invalid> wrote in message
news:94******** *************** ****@24.168.128 .90... ra***@SpamFree. com (Randy Harris) wrote in <QW************ ********@newssv r28.news.prodig y.com>:
In a continuous form I would like to force a specific record to the top of the screen. I can use DoCmd.GotoRecor d 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Form which shows in each row a day of a month
For the saturdays and sundays i wanted the row in a different color.
I choose the conditioanal formating for an inputfield which was as wide as
the whole form
|
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 GoTo err_Form_Load
Dim objRstADO As ADODB.Recordset
|
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 form, but if it's inside a
subform, then it's only as high as the subform. Maybe we have more control
over how scrollbars work, but I don't know about it if there is. The main
reason for this post is that when the user is at or near the bottom...
|
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 offer much help when you need the
UI metaphor to differ from the data storage schema in any significant way.
Here's one trick, though, that you can use to do some simple forms of
uncoupling UI behavior from the back-end structure, and still take...
|
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.
Tables: (abbreviated)
TblDivision
DivisionID
| |
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 these answer scales in a
listbox.
When the scale type changes, the list items should change. Problem is, the
bound continuous form shows for all questions only the scale for the first
question - unless I click on a question with a different...
|
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 Member is seen as a row in a continuous form like:
|
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 that displays the high-level data
for a set of records in continuous forms mode. I have a simple command
button that will open another form with the details of the selected
record.
|
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 that as I type in the the first
two or three numbers of the product code in the textbox, the first product
code record appears at the top of the form. I would like the continuous form
to act like a combox with auto expand.
Thanks!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |