I use the following to commit infromation to memory so I can use it throughout the application. This is stored in a module within my project.
This basically comes from a user login system. The problem I am having is that randomly throughout using my application the data seems to be forgotten. I have set up permissions within my form open events which fire off to check if the user is allowed to open the form. After a while I seem to be getting denied access messages which indicates the user information is being lost.
I know without knowing anything specific this is hard to diagnose, but perhaps others have had similar trouble or does anyone know of a more bullet proof way to store the information?
Thanks,
Chris
Code:
Public Type UserInfo ViewID As Integer AccessID As Integer Active As Boolean Password As String UserID As String SecurityID As String End Type Public User As UserInfo
I know without knowing anything specific this is hard to diagnose, but perhaps others have had similar trouble or does anyone know of a more bullet proof way to store the information?
Thanks,
Chris
Comment