473,513 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access forgetting my definition?

374 Contributor
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
2 1177
jimatqsi
1,271 Recognized Expert Top Contributor
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
munkee
374 Contributor
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

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

Similar topics

8
2941
by: Frnak McKenney | last post by:
Back when computer dinosaurs roamed the earth and the precursors to today's Internet were tiny flocks of TDMs living symbiotically with the silicon giants, tracking access to data processing...
1
2740
by: serge calderara | last post by:
dear all, I have problem accessing section group in my configuration application file. I got an error saying thta I can have only one section ???? here is my application configuration looks...
12
3217
by: Bryan Parkoff | last post by:
CMain Class is the base class that is initialized in main function. CA Class is the base class that is initialized in CMain::CMain(). CMain Class is always public while CA Class is always...
9
2677
by: MacDermott | last post by:
I have an Access MDB which instantiates a class in a custom DLL, manipulates it for a while, then sets it equal nothing. The MDB does other things,too, and generally behaves itself as desired....
3
3481
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no...
16
1604
by: Ed A | last post by:
Hi all: I'm using a struct of type Point that is being passed on to a method as a refrence type (boxing), the UpdatePoint method changes the coordinates of this point as such: Point p = new...
0
1334
by: Michael SL | last post by:
I am trying to get the Table Column definitions from a Microsoft Access 2000 database (*.mdb). Using VB with System.Windows.Forms.Form I do the following Dim OpenDBDialog As New OpenFileDialo...
3
1925
by: Mr Newbie | last post by:
I am messing around with Web User Controls at present and (think) I have discovered the following. 1.) The identifier for the control in the code behind must match the ID for the control on the...
0
1059
by: billmiami2 | last post by:
I have a machine (XP PRO x64) with both the .NET 2.0 (v2.0.50727) and 1.1 (v1.1.4322) frameworks installed. I have both VS2005 and VS2003 running. I'm using Dennis Bauer's ASP.NET version...
3
1846
by: mrstephengross | last post by:
Hi folks... I've been sifting through archived postings on this, but haven't quite found an answer yet. I've got a templated stand-alone function: template<typename Tvoid access(const T & t) { ;...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.