form password gone after saving accdb as accde

collins_jd

New member
Local time
Today, 08:44
Joined
Aug 10, 2022
Messages
18
About to disperse front end to users. clicking through to make sure everything worked and noticed all the passwords that were added in the form property / events are gone. pic of code attached. I cant add them back in accde file. how do I require pw for those forms? sorry, new to access... i googled a bunch before asking but couldnt find an answer.
 

Attachments

  • pwcodeprodcostf.png
    pwcodeprodcostf.png
    91.8 KB · Views: 202
The code is compiled and no longer visible in an accde, but it should still work as before. Are you saying it doesn't?
 
The code is compiled and no longer visible in an accde, but it should still work as before. Are you saying it doesn't?
@pbaldy correct. the code is visible and functions in accdb. when i save the accdb as accde, the forms no longer ask for passwords. Idk if the code is still in the properties of the form because after it is saved as an accde i am no longer able to open the form in design view to see the property sheet. the accdb i saved it from however is in tact and forms still ask for passwords.
 
you need to Enable the macro warning.
 
exit you access and run the .accde again.
i have done that. the forms ask for criteria in the query but do not ask for password. currently reading whatever i can find to try and fix. Thanks for trying to help.
 
are you sure you are running the same db (only converted to accde)?
coz sometimes i Save files to MyDocument only to find out that I have saved it MyDocument in Onedrive?
so better create again the .accde and take note where the file is being saved.
 
i have done that. the forms ask for criteria in the query but do not ask for password. currently reading whatever i can find to try and fix. Thanks for trying to help.
i wish lol everything is saved on a trusted folder on desktop. the only thing i put in onedrive was the back ups i made each day before i split the database and i had to pull those out of the trusted folder to move to onedrive. ive found several posts in other blogs with people having same issue. i found this and will try since its the simplest of the things ive read

"Before converting it into an accde format you should test ALL your code by "compiling" it. Everything may appear to work in the accdb version but when converted won't work if there are some problems.

To "compile" it you open your accdb version and go into any of the code. Then select the DEBUG menu option and select COMPILE (1st option). If you get any errors then fix them and the compile again just to double check. Then try creating your accde again."

crossing fingers and toes :)
 
Well, I don't see why your form doesn't ask for the password.
Do you get the input box or nothing at all?

I do note that you don't have option explicit, at the top of the code module, and you should have that in every module. Maybe adding that that will indicate the issue.

Incidentally, I had seen this question, and then couldn't find it again. It seems strange that it's in "Reports". Forms would make more sense.
 

Users who are viewing this thread

Back
Top Bottom