473,773 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Navigate between open windows? (opinion)

Do you have your users rely on the windows taskbar to manage/navigate
between the forms they have open, or do you provide another (more
robust) method? Does anyone use a custom navigation system (like
keeping a selectable list of open forms in a listbox/commandbar/
breadcrumb trail etc.)?

Mar 7 '07
13 3550
Hello everyone,

This seemed like such a great idea because my users all have 15
forms open at once.

I wrote this code this morning. Let me know if I have done
something dangerous.

This is all in a form called "** Forms **" so we can find it
easily on the launch bar.

You open this form and then click on the Form you want to jump
to.

Tim Reed

' *************** *************** *************** ***
' Get list of open forms
Private Sub Form_Activate()

GetOpenFormsLis t

End Sub
' *************** *************** *************** **************
' Make a list of all open forms excluding this one
Private Sub GetOpenFormsLis t()

Dim obj As AccessObject, dbs As Object
Dim OpenFormName As String

DoCmd.SetWarnin gs False
DoCmd.RunSQL "DELETE FROM [Open Forms List];"
Set dbs = Application.Cur rentProject
For Each obj In dbs.AllForms
If (obj.IsLoaded) Then
OpenFormName = obj.Name
If (OpenFormName <"** Forms **") Then
SQL1 = "INSERT INTO [Open Forms List] "
SQL2 = "( [Form Name] ) VALUES ( '" & OpenFormName &
"' );"
DoCmd.RunSQL SQL1 & SQL2
End If
End If
Next obj
SQL1 = "SELECT * FROM [Open Forms List] "
SQL2 = "ORDER BY [Form Name];"
Me.RecordSource = SQL1 & SQL2

End Sub
' *************** *************** ***********
' Jump to the clicked Form
Private Sub FormNameList_Cl ick()

Dim stDocName As String, stLinkCriteria As String

stDocName = Me.FormNameList
DoCmd.OpenForm stDocName, , , stLinkCriteria

End Sub

Mar 9 '07 #11

Without testing it, the two things I see are.. that I would not
attempt to open the form when clicked in the list. If the form is
already open, attempt to SetFocus or Restore. Mainly because it is
possible to have a form open more than once (multiple instances). So
if this code were to be re-used, it may not work. Also there are times
when certain criteria or events must take place before or during a
form opening. These may be prevented using your current method.

Second, will this code include reports being previewed?

Mar 9 '07 #12
storrboy wrote:
I can send you the one I have. I don't think it will paste properly
into a reply.
I've never noticed any speed issues, but most things I've done with
it, users would rarely have more than 10 windows open at a time.
I've had this for years as an option on the main toolbar. A list that
floats in the upper right showing all open forms and you can click on a name
to bring that form to the front. I have never once seen a user utilizing
it.

(Hey, I thought it was a good idea)
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Mar 9 '07 #13

We used the menu I mentioned because two of the apps we made allowed
multiple instances of a form (Documents and Records). The same form
could be open many times with different records in them. Made sense
for us as the menu would allow locating and moving between them easier.

Mar 9 '07 #14

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

Similar topics

2
8311
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is completely loaded and displayed. Likewise, window.navigate. The code looks something like this: wHandle = window.open( url, name, flags ); .... // how to tell when url is fully loaded and displayed
5
5099
by: Nicola Pedrozzi | last post by:
Here I really need a guru... ;^( I found out today with a big disappointment that : window.open("url", ...) and also navigate("url") limit the max length of the url string to something like 2080 characters. That on Explorer only; Netscape and Mozilla work perfectly
40
10839
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not defaulting the the first active window. How do I make a hyperlink point to the active window? I don not want the hyperlink to default to the same page. I do want a second window but only a second window and not multiple pages.
2
1430
by: Guogang | last post by:
We are happy with the result of smart navigate, until recently some of our webpage shows strange behavior. Page color may change to something else. New windows can not open. Dynamic image can not be shown. If we remove smart navigate, everything works fine. Is there some document list the conditions we should not use smart navigate? Thanks, Guogang
7
4500
by: husamal_ahmadi | last post by:
Hi everyBody: I have this question which really drive me cruzy, By using VB.Net: How can I let the internet explorer navigate in the same window either by using win32 API or by using Microsoft Internet Control refreance to my project ? some body toled me to use ShellExcute Function in API but I tried it
10
6210
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm building a technician's tool and I'm trying to create a Jump Panel of buttons to the Windows System32 folder to open files programmatically. I have the majority of the program files opening except the Microsoft Computer Management console. I've tried in the button click event Shell("C:\WINDOWS\system32\compmgmt.msc") and nothing happens. No open program, no errors nothing.
7
5828
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed to be two techniques for earlier versions. But the window.opener='' ;window.close(); and the window.open('','_parent','') ;window.close(); techniques do not work for me. I.e., I still get confirmation message
103
6880
by: Tom | last post by:
How do we get out of the browser infinite loop quicksand when we navigate to web pages designed to lock us in and force us to hit the "pay me" button (whatever they want to force you to do)? These are just a sample of nasty quicksand web pages I've run into which lock your browser into a loop and won't let you get out until you hit the "install" or "run" or "OK" button... (whatever it is they want you to do). http://www.spywareiso.com...
6
8799
by: emrodge | last post by:
I'm using Access 2007 on Windows Vista and am having some problems trying to configure a simple button. There are two tables called Clients and Contacts which are linked on clients.id and contacts.client_id. There are two forms associated with each table and I am trying to create a button to navigate from the Clients form to the Contacts form (which is a split form) but only to display the contacts where the current clients.id =...
0
10264
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, 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...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
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();...
0
5355
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...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
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
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.