gold007eye
Registered User.
- Local time
- Yesterday, 23:41
- Joined
- May 11, 2005
- Messages
- 260
I have a password set on the VB coding to prevent people from viewing the code. This has been working great until I try to use the code below:
The red text seems to be where I am getting the error.
2017: "Microsoft helps protect this Visual Basic for Applications Project with a password. You must supply the password in tehe Visual Basic Editor before you cab perform this operation".
Is there a way I can bypass this and still have it rename the forms. Or is there a way I can somehow turn off the password... run the renaming code... and then turn the password back on? I have been racking my brain and sifting through searches, but haven't found anything like this.
-Jay
Code:
DoCmd.SetWarnings False
DoCmd.DeleteObject acTable, "DateFlagged"
DoCmd.OpenQuery "Clear License"
[COLOR="Red"] DoCmd.Rename "Logon-D", acForm, "Logon"
DoCmd.Rename "Logon", acForm, "Logon-R"[/COLOR]
DoCmd.SetWarnings True
DoCmd.Close acForm, "Register", acSaveNo
DoCmd.OpenForm "Logon"
The red text seems to be where I am getting the error.
2017: "Microsoft helps protect this Visual Basic for Applications Project with a password. You must supply the password in tehe Visual Basic Editor before you cab perform this operation".
Is there a way I can bypass this and still have it rename the forms. Or is there a way I can somehow turn off the password... run the renaming code... and then turn the password back on? I have been racking my brain and sifting through searches, but haven't found anything like this.
-Jay