By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,696 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,696 IT Pros & Developers. It's quick & easy.

Access forgetting my definition?

100+
P: 374
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.

Expand|Select|Wrap|Line Numbers
  1. Public Type UserInfo
  2.     ViewID As Integer
  3.     AccessID As Integer
  4.     Active As Boolean
  5.     Password As String
  6.     UserID As String
  7.     SecurityID As String
  8. End Type
  9.  
  10. Public User As UserInfo
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
Jul 19 '10 #1

✓ answered by jimatqsi

There's not much overhead in pulling this info from a table whenever it's needed. That's what I do. Others just make the login form invisible after the login occurs and the info is always available there.

Jim

Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,240
There's not much overhead in pulling this info from a table whenever it's needed. That's what I do. Others just make the login form invisible after the login occurs and the info is always available there.

Jim
Jul 19 '10 #2

100+
P: 374
Thank you for the ideas Jim. I have gone with the hidden form idea as to be honest I was feeling a bit lazy to have everything going in to a table =p but nevertheless all seems to working ok.

I have the user login on startup. As soon as the splash screen opens it writes all the user info from the function in my first post in to text boxes which are then stored until the database closes. Atleast this way I can go back to how I was before nice and easily if this solution provides some hicups
Jul 20 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.