IrishTyke said:
Hi Albert,
I've had a look at your shift key bypass routine and it looks just great.
Is the idea to use that form as the Startup form and how does the creator
enter the database to make amendments?
The creator works on the mdb, and then when ready to deploy, you create the
mde, and the user(s) get that.
So, in effect, your production version never has the shfitkey set anyway....
Of course, during development, you will hold down the shift key so your
start-up settings don't run. You then develop for awhile, and then to test
in
"user" mode, you exit..and then re-enter the application without the shift
key bypassed. You will likely do this dance all day long as you run/test as
user mode, and then flip back in to developer mode (shift key used..so you
don't get the main custom menu). So, you can't develop, or really modify
things when you run your application with the start-up settings...so you
must
shift-by-pass them when you want to work. (or, painfully fully change/edit
the start-up settings. A good set of start-up settings will USUALLY need
to be by-passed for general editing and working on the application)
And, in fact, I use alt-f4 to exit the application...the mdb file should
still be highlighted in the windows explore..so, then you hit enter key
(and, hold down shift key if you need be). This key stroke sequence and
exiting and re-entering the application will occur CONSTANTLY all day long
when you are developing.
When you finally have things just right...you create the mde
you plan to distribute...
You set the shift key on that mde....
The "dance" of going in and out of the appcation is the only real way you
can often test how the appcation will function. In a few cases, you an flip
the form in to view/design mode to test things, but usually with a complex
appcation you have to navigate though a series of forms anyway..so, you got
to start at the "beginning" of the application anyway. So, exit...and
re-enter without using shift key...test...exit...and then re-enter via shift
key to go back to work...
I think it goes without saying that if you adopt the above philosophy of
development, then your users will be running a split database, even in
single user mode, as you can't re-distribute a mde over and over without the
users losing their data. So, splitting is much a prerequisite for using
mde's to update users software.
You can read about splitting here:
http://www.members.shaw.ca/AlbertKallal/Articles/split/index.htm