I have two questions here, which I hope will be relatively simple you you guys to answer!
1) Is it possible to stick a line or two of code in a form somewhere so that it is always maximised? I have created a form on a machine, but then when I run it in other machines with different resolutions the size goes iffy.
I found this
Expand|Select|Wrap|Line Numbers
- Global FormHeight
- Global FormWidth
- In the Forms load event insert the lines
- Formheight = me.height
- formwidth = me.width
2) My system is relatively simple, in that if a user closes the login form it wipes a temp value that will essentially log them out, this is not a problem as I am only using a prototype here. However, I want to create a "log-out" button which will simply close all the open forms and then open my login form (frmLogin) leaving the system all nice and ready for the next poor soul to test it out :D
I have played with macros, but the only ones in access seem to just close the existing form. A worst case scenario would be a form-specific log-out button, where I could code in some thing like,
close frm1
close frm2
and then for another form have a button that looks the same going
close frm3
close frm4
close frm5 etc etc.
I just wondered if there was a closeallforms() I could bind to a button?
Some help would really be appreciated!
Cheers folks!
Mark