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

Record Navigating Event on a Tab Control Page

I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In my database, however, I want to associate a particular numbered record of a field with each separate tab.

In exploring my options, it looks like the best way to do this is to add a record-navigating “On Click” event to each separate page of the tab control. The command button wizard will allow me to select the option of navigating to the first, last, next, or previous record – but not to a specific numbered record.

For grins, I have created a sample record navigation button – like GoToLastRecord. When I click on the Event Procedure in the button’s properties, it brings up a Visual Basic window with the underlying code for the button I just created. (As of now, I know very little about the Visual Basic language.)

My main question is either a) is there readily-accessible, existing code for navigating to a specific record X, or b) how would I modify the code generated for the button I made to make the database jump to a specific record X? Also, I need general instructions on how to locate the code file for the button I made; I presume I will need to store my “new” code file in the same place.

Thank you for any help you can offer!

John Osborn
Dept. of State Health Services
Austin, Texas
Oct 26 '06 #1
1 3413
MMcCarthy
14,534 Expert Mod 8TB
I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In my database, however, I want to associate a particular numbered record of a field with each separate tab.
if you put a control on the form rather than any specific tab page then it will be common to all tabs.


In exploring my options, it looks like the best way to do this is to add a record-navigating “On Click” event to each separate page of the tab control. The command button wizard will allow me to select the option of navigating to the first, last, next, or previous record – but not to a specific numbered record.
create a textbox on the form (not on a tab page) call it RecordNumber

Then create a command button on the form. When the wizard opens just close it.

Now right click on the command button and select properties

When the properties window opens:

In the format tab

Beside Caption put in something simple like 'Go to Record'

In the Event tab

go to the On Click event and enter the following code

Expand|Select|Wrap|Line Numbers
  1.  
  2. DoCmd.GoToRecord acDataForm, "FormName", acGoTo, Me.RecordNumber
  3.  
  4.  


Also, I need general instructions on how to locate the code file for the button I made; I presume I will need to store my “new” code file in the same place.
see above
Oct 28 '06 #2

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

Similar topics

17
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset...
2
by: Louis1 | last post by:
I am just going crazy. I have a report that requires page totals. I got the report working, except that my page has ELEVEN records (ok), but the page total includes data on the TWELFTH record....
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
1
by: planetthoughtful | last post by:
Hi All, I have a mainform with a subform in which I show some task summary data. On the mainform I have a number of unbound controls that reflect values relevant to each task in the subform....
4
by: AA Arens | last post by:
I amde a helpdesk database and on the calls form I put record navigation buttons / / / / / / Is het possible to navigate / through the records with a certain status. Each call has a...
2
by: Stratum | last post by:
It's an old question, and I apologize for raising it again. I use ImageButton objects on my ASP.Net master page to navigate to content pages. For each button, I have two images. One image shows...
0
by: in10se | last post by:
I have a .NET 2.0 application that uses the WebBrowser control. Because all of my pages are generated dynamically, I am catching the Navigating event, cancelling it, and performing my own operations...
3
by: bcwatson | last post by:
My Access DB has a main data entry form. There are so many fields on the form that I've added a vertical scroll bar. When my cursor is in a text box near the bottom of the form and click on the...
4
by: aaronyoung | last post by:
I have created custom navigation buttons and Record Number indicators on several forms that are used to review and update records based on a query. My On Current event to update the "Record X of...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
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.