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

What is the best way to create a "wizard"?

Seth Schrock
2,965 Expert 2GB
I’m trying to create a “wizard” like way to go through a series of steps to setup a job (requiring changes to multiple tables through many different views created by queries) by clicking a “Next” button. A back button would also be available if that makes a difference. I see a couple of options, but would like some advice as what considerations should be made to choose the best option. New ideas are welcome too! This is the first time that I have done something like this, so I have no personal experience with any of these ideas, so don’t laugh too hard.

1. Create a separate form for each stage of the wizard and have the Next button open the next form and close the current form. I don’t really like this idea because of the delay between clicking next and being able to actually edit the next form. Forms can sometimes take a while to load if the computer is running slow.

2. Use tab controls with each stage of the wizard on a separate tab. The Next button just sets the focus to the next tab. This could lead to a lot of controls to load at the beginning making it take forever.

3. Use code to change the recordsource of the form to the next query. The queries could be setup so that the fields are aliased to generic names such as “Field1”, Field2”, etc. so that control data sources wouldn’t have to be changed. Controls that aren’t used could be made invisible. This would require a lot of code.

4. Have each stage as a subform and just edit the visibility status of each form as needed. Might have to resize and change the location of each subform as they are made visible.

Like I said, this is new to me and these are just the ideas that came to me. Criticism of any or all of my ideas is welcome. I believe that I can implement each of these solutions, so exact details aren’t needed, just which path I should take. If I stumble on the chosen path, I will post that separately.
Feb 28 '13 #1

✓ answered by TheSmileyCoder

The only thing I will downright recommend AGAINST is 3)
A nightmare to maintain.

My recommendation would be a combination of the tab and the subform approach. A tabbed form with 1 subform in each tab. Note however that the table updates (for bound tables) are performed "as you go". I.e. there is no global rollback possible for the form collection as a whole.

7 4091
zmbd
5,501 Expert Mod 4TB
For "wizard" type actions I usually use a tab controlled form.
THe coding can be quite complex, the the very simple.
Feb 28 '13 #2
TheSmileyCoder
2,322 Expert Mod 2GB
The only thing I will downright recommend AGAINST is 3)
A nightmare to maintain.

My recommendation would be a combination of the tab and the subform approach. A tabbed form with 1 subform in each tab. Note however that the table updates (for bound tables) are performed "as you go". I.e. there is no global rollback possible for the form collection as a whole.
Feb 28 '13 #3
Seth Schrock
2,965 Expert 2GB
It sounds like the tab control is the way to go. I will pursue that option. Thanks to both of you. Unfortunately I can't choose both answers as best answer, but they basically give the same answer.
Feb 28 '13 #4
ADezii
8,834 Expert 8TB
A 'Custom Wizard', one that is integrated into Access itself, is an Add-In. You must follow a strict set of Rules for its creation, but once created becomes a part of Access itself. A Wizard will allow you to extend your Database in a way that is unique and tightly integrated.
Feb 28 '13 #5
Seth Schrock
2,965 Expert 2GB
The MSDN website that is supposed to tell how to create a wizard add-in is broken (tried with two different browsers). Do you have a link to tell how?
Feb 28 '13 #6
ADezii
8,834 Expert 8TB
@Seth Schrock
I do not have a Link on this Topic, but the best Reference that I can give you is:
Access 2002 Desktop Developer's Handbook
Chapter 18
Developing Custom Wizards
Page 1162
Feb 28 '13 #7
Seth Schrock
2,965 Expert 2GB
Thanks ADezii. I will look it up and see if I can get it through interlibrary loan.
Feb 28 '13 #8

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

Similar topics

5
by: Al Christoph | last post by:
I have a program that mixes wizard like behavior with random access to the various dialogs in the wizard. I do this by having each step map to a toolstripmenuitem. Users can randomly choose the...
14
by: Jeffery Tyree | last post by:
A friend is developing a Access 2003 database. I am developing a simple installer package using C#Net. We are looking for best methods, suggestions and definately code examples for: 1. Setting...
12
by: Vlad de Mille IV | last post by:
Well, as the subject says.... Briefly, when I try to run *any* wizard, I get a simple dialog, stating "Permission Denied", to which I can only click "OK". I suspect this is a windows (XP)...
1
by: Paul Bawin | last post by:
Hi All, How can I load an object A that host an object B that is defined in an other Assembly ? Thank you See the exemple below : I have a DLL with these classes
8
by: John E Katich | last post by:
When attempt to use the Event Wizard I get the following error message: "Add/Remove of the function impossible, because the parent class code is read only" The Project was convert from VC 6.0....
0
by: Lisa | last post by:
I am trying to create a Crystal Report for my ASP.NET application that will allow the user to select a specific group of client addresses to create mailing labels. Since this is an ASP.NET...
5
by: Geri Reshef | last post by:
In the VB6 I used the "Package & Deployment Wizard" to create an installation package. I didn't find the VB.Net equivalent. Does anybody knows where or what is it?
3
by: Dave | last post by:
I've run across a strange error when creating a simple ADO.Net connection in VB.Net 2003 To replicate an error: Create an Access database (2002) with table named "Student" and fields SID...
8
by: redeagle | last post by:
I'm wondering what the best practice is for creating a WinApp "wizard" that contains 4 or 5 "steps". Options so far are 1) Single WinForm making various controls visible/non visible at the...
5
by: Nick Gilbert | last post by:
Hi, I'm using the asp:Wizard control and on some of the steps, I would only like the user to be able to progess to the next step by clicking an image button. Therefore I would like to be able to...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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.