473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating a macro that will check password

2
To whomever can assist!!

I'am doing a class project that involves creating an alumni database. It begins with a form where the user type is broken down into alumni or student. If you are an alumni clicking the button will take you to a form were you must enter in your username and password before going to a new form that will allow you to update your information.

My problem is that i can not creat a macro that will do the following:
(1) check to see if the username typed in the text box can be found in the table that contains all of the usernames and passwords.
(2) then it should do the same thing but with the password.
(3) If a proper username and password is typed into the text box then the form titled faculty1 should open.
(4) if false values are enter then a message box should appear saying "invalid user"

I don't know much about macros so detailed and ordered instructions would be nice if possible!!

Chris
Nov 28 '06 #1
3 3110
NeoPa
32,556 Expert Mod 16PB
There are other threads in here which deal with the matter in more detail, but simply, you can do a DLookup on the table that contains your usernames and passwords passing the values to be checked. If it returns a record then the values are ok.
MsgBox() etc should handle the rest for you.
Nov 28 '06 #2
greggc
2
There are other threads in here which deal with the matter in more detail, but simply, you can do a DLookup on the table that contains your usernames and passwords passing the values to be checked. If it returns a record then the values are ok.
MsgBox() etc should handle the rest for you.

How do i perform a Dlookup.. im very new with macros
Nov 28 '06 #3
NeoPa
32,556 Expert Mod 16PB
I suggest, for questions of that level, you should look it up in the help system.
Nov 29 '06 #4

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

Similar topics

1
by: Giganews | last post by:
I have an Access 97 database in which I am running an Excel macro through automation. The macro in Excel is as follows: Worksheets("Sheet1").Protect Password:="****", DrawingObjects:=True,...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
6
by: Darren | last post by:
hi y'all! i pretty much wanted to do a custom form where users can change their password to the database as they like.. the problem i encountered is that it seems that when a valid user enter...
9
by: Dixie | last post by:
How can I open a macro so it can be edited in code from a button click? Assuming I can, will this be able to be done in an mde application. dixie
8
by: nandakumar.raghu | last post by:
Hi, I am creating a #defined class like - #define BEGIN_TEST_MAP(testmapname) class testmapname\ {\ testmapname(){}\ testmapname(std::ofstream resultfile)\ {\ resultfile << "<Test name=\""...
5
by: Dan | last post by:
Hi, I use the <asp:CreateUserWizardcontrol for creating memberusers. In that windows, one must provide an emailaddress. My question is: how can an user later change his emailaddress? Thanks...
6
by: pek | last post by:
I have read a lot of tutorials on how to create a login mechanism (a lot of which I found really useful). None of them however explain how do you check if the user is or is not in fact logged in. ...
8
by: kini113 | last post by:
I want to update my database every night at 10pm. I have a Macro that runs all of the queries needed to update the database (which is also saved as a VBA module) and an AutoExec Macro to runs the...
4
by: kini113 | last post by:
I want to update my MS Access database every night at 10pm. I have a Macro that runs all of the queries needed to update the database (which is also saved as a VBA module) and an AutoExec Macro to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.