473,769 Members | 6,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form level variables - the way to do this?

It's a form, with (so far) 4 tab pages on it, each of which holds 2/3/4
subforms.

(I like tabbed forms by the way - do we all?)

Basically the subforms are different ways of looking at the data. It's the
orchestral management thing still.

So tab 1 looks at each musician, the events they're booked onto, which jobs
they're doing etc.

tab 2 looks at each job, who's doing it at which event etc.

To preserve state between tabs I've set up a few form level variables, so
that when you're on musician A on one subform when you switch to another tab
you'll be on musician A there too. Hopefully.

Is form level variables the usual way to accomplish this? If there is a
'usual' way.

TIA, Mike MacSween
Nov 12 '05 #1
4 3336
Unless you are doing something to change the state of the tabs, they should
retain whatever state they were left in.
(Unless one is in the middle of a record edit, in wich case it will attempt
to update it when it looses focus)

Mike Storr
www.veraccess.com
"Mike MacSween" <mi************ ***********@bti nternet.com> wrote in message
news:40******** *************** @news.aaisp.net .uk...
It's a form, with (so far) 4 tab pages on it, each of which holds 2/3/4
subforms.

(I like tabbed forms by the way - do we all?)

Basically the subforms are different ways of looking at the data. It's the
orchestral management thing still.

So tab 1 looks at each musician, the events they're booked onto, which jobs they're doing etc.

tab 2 looks at each job, who's doing it at which event etc.

To preserve state between tabs I've set up a few form level variables, so
that when you're on musician A on one subform when you switch to another tab you'll be on musician A there too. Hopefully.

Is form level variables the usual way to accomplish this? If there is a
'usual' way.

TIA, Mike MacSween

Nov 12 '05 #2
On Fri, 5 Mar 2004 08:06:38 -0000, "Mike MacSween"
<mi************ ***********@bti nternet.com> wrote:

I see nothing wrong with it. However, you could also reference the
master musician list itself, eliminating the need for a variable:
"select * from events where MusicianID=" &
subfrmMusicians .Form.MusicianI D

-Tom.
It's a form, with (so far) 4 tab pages on it, each of which holds 2/3/4
subforms.

(I like tabbed forms by the way - do we all?)

Basically the subforms are different ways of looking at the data. It's the
orchestral management thing still.

So tab 1 looks at each musician, the events they're booked onto, which jobs
they're doing etc.

tab 2 looks at each job, who's doing it at which event etc.

To preserve state between tabs I've set up a few form level variables, so
that when you're on musician A on one subform when you switch to another tab
you'll be on musician A there too. Hopefully.

Is form level variables the usual way to accomplish this? If there is a
'usual' way.

TIA, Mike MacSween


Nov 12 '05 #3
"Mike MacSween" <mi************ ***********@bti nternet.com> wrote in
news:40******** *************** @news.aaisp.net .uk:
It's a form, with (so far) 4 tab pages on it, each of which holds
2/3/4 subforms.

(I like tabbed forms by the way - do we all?)
Yes, I'm a tabbed form addict. My users taught me to be, as they
hate popup forms, in general, because it's too easy to get lost.

(a fascinating article on UI design errors:

http://www.catb.org/~esr/writings/cups-horror.html

I recommend that everyone read this and the followup referred to at
the end; it's not about tabbed interfaces, but it makes a number of
points that are pretty important)
Basically the subforms are different ways of looking at the data.
It's the orchestral management thing still.

So tab 1 looks at each musician, the events they're booked onto,
which jobs they're doing etc.

tab 2 looks at each job, who's doing it at which event etc.

To preserve state between tabs I've set up a few form level
variables, so that when you're on musician A on one subform when
you switch to another tab you'll be on musician A there too.
Hopefully.

Is form level variables the usual way to accomplish this? If there
is a 'usual' way.


Well, shouldn't this be data-driven?

The usual design of a parent form/subform is that the subforms are
linked to the record displayed in the parent form. That would be a
very easy way to coordinate multiple subforms.

If, on the other hand, your parent form is unbound and displays a
number of subforms that are not all children of the same parent, you
could create a control that does display the common information and
use that for your link.

That is, if you're moving between two tabs that both display
information about the same person, there ought to be a header in
common to those two tabs that displays which person the child data
is about, and also allows you to navigate to a different person.

One way to accomplish this would be to have the "header" portion of
the form be a tab control with no tabs displayed. You'd have
sufficient tabs on it to display as many different headers as you
needed, with navigation for those headers, and the tab shown on the
header would be driven in the OnChange event of the tab.

I can see possible problems with that with certain kinds of design,
but you get the idea, maybe. The principle is that there should be a
header that is shared between tabs that display the same kind of
information.

And if you need different headers, you might consider breaking the
whole thing down into separate forms. While I avoid popups so users
don't have to navigate between different forms all the time, I do
think you need to keep distinct entities separated from each other.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #4
On Fri, 05 Mar 2004 15:25:26 GMT, "David W. Fenton"
<dX********@bwa y.net.invalid> wrote:
"Mike MacSween" <mi************ ***********@bti nternet.com> wrote in
news:40******* *************** *@news.aaisp.ne t.uk:
It's a form, with (so far) 4 tab pages on it, each of which holds
2/3/4 subforms.

(I like tabbed forms by the way - do we all?)


Yes, I'm a tabbed form addict. My users taught me to be, as they
hate popup forms, in general, because it's too easy to get lost.

(a fascinating article on UI design errors:

http://www.catb.org/~esr/writings/cups-horror.html


Neat article - thanks for the link.
Nov 12 '05 #5

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

Similar topics

6
1910
by: Bob | last post by:
Declaring a module level form object in multiple froms within a project to show another project form causes a stack overflow and other assorted errors. Can anyone help?
1
13070
by: william cline | last post by:
Hi, I am a beginner and below I have code for a long in form. My goal is for the form to read a file of a list of users and thier passwords ....compare the text box inputs to the file and either start over or load the main file.... I attempted to use a slect case..but its not working for me.. If someone has a better way of doing it..I would apperciate the help. Thank you! Option Explicit Public LoginSucceeded As Boolean
2
3634
by: Jim | last post by:
I have a C# Web application that has 1 Web form that has 2 command buttons on it with a label for output. I have a form level variable declared String strName = "Jim"; right below where the buttons are declared by the form designer. I have two event methods for my 2 command buttons. In the Button1_Click event method I change the value of the form level variable strName = "Kevin";. In the second event method, Button2_Click I check to see...
2
1299
by: Landley | last post by:
Hi All, I have declared some class-level variables in a web user control. When a button is clicked, one of these variables is set to a specific value. The page then does a postback and the value that I previously stored in the variable has gone. Is there a way to keep hold of the values of these variables without using Session variables?
19
1980
by: hamil | last post by:
I have a form with one button, Button1, and a Textbox, Textbox1 I have a class, class1 as follows. Public Class Class1 Public DeForm As Object Sub doit() DeForm.Textbox1.text = "It works" End Sub End Class
2
2298
by: TD | last post by:
I've read several posts here that say global variables are reset whenever an unhandled error occurs. I want to use a custom form property instead of a global variable to store a boolean value. My question is does a custom form property get reset also? Was also wondering if there is any reason one would ever use a global variable since the consensus seems to be to never use global variables?
27
4753
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it appears that the data goes straight to the processing page, rather than the javascript seeing if data is missing and popping up an alert. I thought it may be because much of the form is populated with data from the db (lists, etc.), but when I leave...
4
3859
by: chandu | last post by:
Hello, declaring class level variables is good approach or not in c#. in C++ we used prefer diclaring class level variables more than local variables. i had a discussion with somebody that in C# it is disadvantage to diclare class level variables
13
8923
by: geosmy | last post by:
Hi everyone, First post here! I have been trying to upgrade to Acc2007 looking forward to using Split Forms. To my horror I have just discovered that Split Forms do not hold variables at module level!!! Although code is working perfectly well when in Single Form view, when switching to Split Form view... problems. This must definitely be a bug unless there are limitations to Split Forms (doubt it). Although there might be some...
0
9589
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, 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...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
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
10050
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...
0
9866
tracyyun
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...
1
7413
isladogs
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...
1
3967
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
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.