473,320 Members | 2,073 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,320 software developers and data experts.

Navigation buttons

lotus18
866 512MB
Hello World


My client wants to me to add navigation keys for the MDIChild forms (Just like a Windows Explorer). When using CTRL + F6 it would go to the next form again and again. My problem is, how can I make disable the buttons (next or back) if I reached the first or the last form? Any ideas? Thanks : )


Rey Sean
Jan 22 '08 #1
5 956
debasisdas
8,127 Expert 4TB
is your number of child forms fixed ?
Jan 22 '08 #2
lotus18
866 512MB
is your number of child forms fixed ?
What do you mean by fixed? I really have no idea about that : )
Jan 22 '08 #3
Ali Rizwan
925 512MB
Hello World


My client wants to me to add navigation keys for the MDIChild forms (Just like a Windows Explorer). When using CTRL + F6 it would go to the next form again and again. My problem is, how can I make disable the buttons (next or back) if I reached the first or the last form? Any ideas? Thanks : )


Rey Sean
In Explorer explorer only saves a fixed number of contents.
So declare an array or insert a list control or do some thing like that and when you open a form on its load event saves its name in that array or menu and so on. When ever u click on back it opens the last form getting his id or name from the history list and move that item to previous navigation list. I think this will help if you want some more help plz tell me so that i ll make an example for you.

Regards
>> ALI <<
Jan 22 '08 #4
lotus18
866 512MB
In Explorer explorer only saves a fixed number of contents.
So declare an array or insert a list control or do some thing like that and when you open a form on its load event saves its name in that array or menu and so on. When ever u click on back it opens the last form getting his id or name from the history list and move that item to previous navigation list. I think this will help if you want some more help plz tell me so that i ll make an example for you.

Regards
>> ALI <<
OK Ali, can you give me an example for this one?
Jan 22 '08 #5
Killer42
8,435 Expert 8TB
My client wants to me to add navigation keys for the MDIChild forms (Just like a Windows Explorer). When using CTRL + F6 it would go to the next form again and again. My problem is, how can I make disable the buttons (next or back) if I reached the first or the last form? Any ideas? Thanks : )
If the user can switch from the last to the first form directly by using the mouse, then maybe you shouldn't disallow it through the keyboard.

But in any case, how about this...

Let's say you have five child forms, called Form1 through Form5.
Create a public variable, let's say LastForm.

In each form's Deactivate event procedure, set LastMsg to Me.Name.
In the Activate event procedure for Form2, do something like...
If LastForm = "Form5"
Form5.Show
End If

And something similar, though reversed, in Form5.

This is probably an ugly way of going about it, but seems to work.
Jan 23 '08 #6

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

Similar topics

5
by: Mike MacSween | last post by:
A single form (i.e. no subforms) opening full screen, how can I get the navigation buttons (Access built in) to be higher than the bottom of the screen. It annoys the users - they go for the nav...
6
by: MX1 | last post by:
Hi, I've created a series of navigation buttons to be used as a standard across many forms in an Access DB. Does anyone know an easy way to cut and paste these navigation buttons into each new...
2
by: PC Datasheet | last post by:
I have an AccessXP(A2000 mode) customer who says on one form the navigation buttons do nothing when he clicks on any of the 5 but the navigation buttons work on other forms. In my copy of the...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
3
by: Jack Russell | last post by:
I want to add navigation buttons to a tabcontrol (somewhat like excel) How do I get the "tabs" to offset to the right so that I can draw the buttons on the left? TIA -- Remove norubbish to...
0
by: John Phelan-Cummings | last post by:
In the process of polishing up my (last) beta application; I have been exploring all the possible ways of speeding up my forms. I realized that numerous a forms under various application...
4
by: Jamey Shuemaker | last post by:
Howdy, Saw a couple threads from the past few years on this topic, but didn't really find any solutions. Here's one I found:...
9
by: mosscliffe | last post by:
I am struggling to find a python example of the scenario - I have. I have a python script, which generates a page with a search button (actually an input field). The data from the above...
3
by: Gary | last post by:
Afternoon Is it possible to display test alongside the Navigation Buttons in an MS Access form? I have a complex form containing a number of subforms where the Navigation Buttons are...
0
by: emalcolm_FLA | last post by:
Hello and TIA for your consideration. I have created several db's for a non-profit and they want custom navigation buttons to display "You are on the first record, last record, etc". With this...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.