You need that as an autoexec, have you done that?
A simple function name is not going to work unless you call it from the autoexec?
No, I’ve not done! …. What I have to do as well as add vba module ?
Thanks
You need that as an autoexec, have you done that?
A simple function name is not going to work unless you call it from the autoexec?
I need to be able to view and access to tables and modules, after users have entered data!
That is NOT what the code does.another thing: on FE file the shifkey is disabled only when it found the "unlock_shift.txt" on c:\
but if "unlock_shift.txt" is not present the shifkey is locked anyway!
That is NOT what the code does.
If the file is not present then the FE will NEVER be unlocked.
Plus you have to quit the DB and open it AGAIN to see if it has worked.
Run that code that I posted in post #20 and see what you have.
WALK your code with F8 and see what it does, not what you think it does.
Basic debugging 101.
Probably need a password for the BE if you want to stop people going in the BE.
Well if it doesn't find the function it is NEVER going to run.ahh ok! It do exaclty that you wrote!
How can I run that code?
I've copied the code into a vba module, and then? I've created an autoexec but It doesn't find function....
"I would like to have a code that lock shif key at startup both for FE and BE, and when "unlock_shift.txt" will be present on c:\ the shif lock is abled."
It should be possible?
this was refered only at code you've posted in post #20Well if it doesn't find the function it is NEVER going to run.
Walking your code would prove that.![]()
If that's all you need to do, perhaps you can forget about this code and simply use this old utility.I’m not saretta000 !
I need only to disable shift key in FE and BE.
And I need a way to enable shiftkey when it is necessary.
Unlock shofkey when “unlock_shift.txt” it is ok for me
Use Ctrl +G or Alt + F11
See my link for debugging Vba code.
I now think that is a reference issue, but I do not know which reference is required.This is what It appears running code on post #20