473,387 Members | 1,486 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,387 software developers and data experts.

Command Buttons to bring user back to top of current form

Hi byters . Some of the forms Im creating contain full computer specifications and as a result are very long. Im trying to put a a command button at the bottom of these forms that returns the user to the top of the current form when clicked. Is this possible? I cant find any macros that facilitates this . Any pointers would be greatly appreciated.
Apr 14 '08 #1
5 4202
MindBender77
234 100+
Hi byters . Some of the forms Im creating contain full computer specifications and as a result are very long. Im trying to put a a command button at the bottom of these forms that returns the user to the top of the current form when clicked. Is this possible? I cant find any macros that facilitates this . Any pointers would be greatly appreciated.
Just a thought, panteraboy. You might want to trying putting a colorbox at the top of your form, making its backcolor and border transparent. In the OnClick event of you command button, you could set the focus to that colorbox. This is untested but, it might be worth a try.

Bender
Apr 14 '08 #2
missinglinq
3,532 Expert 2GB
Bender has the right idea, but why add a control just for this purpose? Just set focus to the first control at the top of your form:

Private Sub GoToTop_Click()
Me.FirsrtField.SetFocus
End Sub

Linq ;0)>
Apr 15 '08 #3
ADezii
8,834 Expert 8TB
Hi byters . Some of the forms Im creating contain full computer specifications and as a result are very long. Im trying to put a a command button at the bottom of these forms that returns the user to the top of the current form when clicked. Is this possible? I cant find any macros that facilitates this . Any pointers would be greatly appreciated.
There is a very simple Method designed specifically for what you are describing, namely, the GoToPage Method. This Method moves the Focus to the 1st Control on a specified Page in the Active Form. In your case, place the following line of code in the Click() Event of your Command Button:
Expand|Select|Wrap|Line Numbers
  1. Me.GoToPage 1
Apr 15 '08 #4
Thanks alot guys yes are a great help and good teachers. Thanks again
Apr 15 '08 #5
missinglinq
3,532 Expert 2GB
That's why we're here!

Linq ;0)>
Apr 15 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
3
by: YT | last post by:
Greetings, Just wondering if someone out there can help with this issue. I have a questionnaire that i'm building. Each step is a separate web page with a form and a next button & back button,...
4
by: MJW | last post by:
Is there a way for me to know if or which command button was just clicked that triggers the LostFocus event for the current control on a Form? I have a form that has many types of users who each...
1
by: Tim | last post by:
I have one main form that I use to view data as well as add new records. When I click the add new record button, many of the form's controls that arn't needed get set to invisible. When I'm done...
5
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
11
by: dana1 | last post by:
I have a form which contains some buttons. The buttons use some of the standard images that come with access 2003 (e.g., the move next record image, or the sort ascending/descending images). The...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.