473,466 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Database User Name Displayed on Welcome Form

68 New Member
Hi,
I have an Assess 2007 database with a user table. This table holds database user names and user passwords an entry permission to the database. I also have a welcome form that activates when user enters the database using either of the user names and user password in the user table. Now, I would like to display the database user name (NOT THE SYSTEM USER NAME] on the welcome form of the user that enters the database.
I do not currently have a code for this.
I will appreciate any assistance.
Thanks
May 9 '13 #1
7 1770
Rabbit
12,516 Recognized Expert Moderator MVP
You can either set a flag in the table of who the currently logged in user is or store it in a global variable in a form that will stay open the entire time but is hidden.

On a side note, how are you storing your username and passwords? That seems like a huge security risk to store it in Access. Anyone can get into the table and see or change everyone's passwords.
May 9 '13 #2
Stoic
68 New Member
@Rabbit
Thanks, the user table is hidden and has a security feature as well. For storing, I have two fields (userId and userpassword). Only the administrator has access to changing password and most of the functions are disabled.
Can you send me the process of flaging in a global variable; I am sure that would help. I was also wondering if it is possible run a code to lookup a username from the user table.
Thanks
May 9 '13 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Just be aware that any security you put in access can be undone by the user relatively easily.

process of flaging in a global variable
That wasn't what I suggested. I suggested two different methods. One was set a flag in the table of who the currently logged in user is. The other was store it in a global variable in a form that will stay open the entire time but is hidden.

I'm not sure which method you are asking about.
May 9 '13 #4
Stoic
68 New Member
@Rabbit
Thanks, I will try the flag.
Thanks
May 9 '13 #5
NeoPa
32,556 Recognized Expert Moderator MVP
The flag is simply an extra field in the table. Typically this has a type of Yes/No or Number. This option relies on their only ever being one user of the database at any time.

From Access 2007 there is another option (Temporary Variables I believe they're called) which are session specific and probably suit your requirement better.

Other alternatives are to ensure the FE is only ever single user and has a local table which can store such information. This allows the BE to be multi-user without complications.
May 10 '13 #6
Stoic
68 New Member
Thanks guys, but your suggestions are not working.
May 15 '13 #7
Rabbit
12,516 Recognized Expert Moderator MVP
Then you're doing something wrong. You need to show us what you did by posting your code so we can tell you where it's wrong.
May 15 '13 #8

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

Similar topics

5
by: Mike Turco | last post by:
(This was also posted to comp.database.ms-access before I realized this was the hep group.) Lets say that my WinXP computer has two users: Michael and Kathryn. One or the other logs into the...
3
by: Shaun | last post by:
Hi all, I'm convertinmg an Access 2002 application to SQL Server with many differant locations, each needs their own instance of the database on the same physical server so I have created an INI...
3
by: Kanth | last post by:
Hi All, I am developing an .net application (intranet). In the Home page, I would like to show user name (a welcome message) and I don't know how to get the user name through NT user ID. Will...
2
by: adbarnet | last post by:
Hi, I'm a C++ developer coming fresh to c# for GUI development. For the project I'm working on, I need a specialised control (a treeview derivative) which would be very useful in other...
4
by: Zachary Hilbun | last post by:
I need to write an ASP that requires a user to give a User Name and Password to run it. Whenever I've used this on the Web it displays a standard dialog and then offers to save the User Name and...
1
by: Brian Henry | last post by:
I want to make a login form, but have a checkbox with a "remember user name" option to create a cookie on their system to save their user name and place it into the username text box when they...
3
by: Funky | last post by:
Hi, I have developed an ASP.NET application which has been running in production for around 3 months without any major glitches. Recently, a user was attempting to upload a rather large CSV file...
1
by: rahul agarwal | last post by:
Hi i want to store windows login user name to database using asp & vbscript. For this i'm using Server Variables which will detect user name.But the problem i'm facing that it is not working on LAN...
3
by: swetha123 | last post by:
hello, I don't know how to use cookies please help me in this I am using the dream weaver cs4 I designed the navigation bar to my page using dream weaver cs4 navigation bar contains...
0
by: Koteswara Rao K | last post by:
HI, How to call Sql * Loader Program Without passing Database user name and PAssword
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.