473,757 Members | 5,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password Verification Form...

All,
This should be very simple for you VB programmers, I am just a
beginner and am stuck! It should be very simple... what am I not
doing right?

Dim PW As String

PW = Me.Password

If PasswordVerify <> Password Or IsNull(Password Verify = True)
Then
MsgBox "Password you've entered do not match. Please Retype."
Me.PasswordVeri fy = ""
[Password].SetFocus
Me.Password = PW
Else: MsgBox "Your new password has successfully been set."
End If
I have 2 boxes, "Password" and "PasswordVerify ". Password box is
based on a Table while PasswordVerify is just an unbound box. If user
enters an password that do not match, it will revert back to its
original password. I named it PW. But apparently, me.password = pw
did not do so. What did I code wrong?

Thanks.
PC
Nov 13 '05 #1
1 2181
pe******@yahoo. com (PerryC) wrote in
news:ea******** *************** **@posting.goog le.com:
All,
This should be very simple for you VB programmers, I am
just a
beginner and am stuck! It should be very simple... what am I
not doing right?

Dim PW As String

PW = Me.Password
The next line of code is bad. If PasswordVerify <> Password Or IsNull(Password Verify =
True)
Then

it should be:
If PasswordVerify <> Password Or IsNull(Password Verify)

because
(PasswordVerify = true) can never be null.

You'd simplify everything however but inverting the logic

If me.Password = PasswordVerify then
msgBox "Your new password has successfully been set"
else
msgBox " whatever"
me.PasswordVeri fy = null
me.Password.set focus
me.Password = PW
End If

Note password = passwordverify will be false if either side is
null. That makes the whole thing easier to manage.

Bob Quintal

MsgBox "Password you've entered do not match. Please Retype." Me.PasswordVeri fy = ""
[Password].SetFocus
Me.Password = PW
Else: MsgBox "Your new password has successfully been
set."
End If
I have 2 boxes, "Password" and "PasswordVerify ". Password box
is based on a Table while PasswordVerify is just an unbound
box. If user enters an password that do not match, it will
revert back to its original password. I named it PW. But
apparently, me.password = pw did not do so. What did I code
wrong?

Thanks.
PC


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5830
by: Richard M | last post by:
Can anyone please lend me a hand, I'm trying to design a cookie based password system. I have managed to do everything bar one thing that is driving me crazy. I have a MYSQL database called "PassworDB" which has a table in it called "auth", this table has the columns "user_id" (this is an auto incrementing number) "user" (meant for the users name) and "password".
2
1773
by: Rickard | last post by:
OK. I have the need on a form submit to pass the data to anther system that require a login and password only I want to automate the process in an server side asp file and then process the response. I am having the form submit pass a users ss # and name to an asp file, I want that asp file to pass that info on to my "verifying" site along with the username and password for that "verification" site. Is there some way in asp to access a...
2
2417
by: MLH | last post by:
What's the simplest way to allow a user of an A97 app to change password?
3
6587
by: Susan Bricker | last post by:
I would like to have a transparent command button on my Main Menu to cause an Inputbox( ) to be displayed for the user to enter a password. This is to control the enabling of Bypass Key (shift). My question is ... is it possible for the password to be displayed as asterisks ("*") in the input text box as the user types in the text? If yes, how do I get that to work? If no, then does anyone have any suggestion? Thanks much.
9
11527
by: kwindham | last post by:
This program doesn't seem like it should be too hard, but I cannot figure it out. Here is the assignment: Password Verifier - Write a program to verify passwords, satisfying the following specifications: ALGORITHM: 1. Ask the user to input a possible password. 2. Check to see that it: - is at least 8 characters long
0
2189
by: pwilliams | last post by:
NCOALink Change of Address Verification Each year over 40 million Americans change their mailing addresses. This change is equivalent to every person in California deciding to change addresses and not tell you that they have moved. This uncertainty results in wasted spending on undeliverable address mail, returned mail and processing fees related to direct mail campaigns. NCOALink solves this problem for you. NCOALink provides you...
3
4361
by: Saqib Ali | last post by:
is there a way to enforce password history verification when using Directory.Entry.Invoke("SetPassword", newPasswdStr)??? saqib http://www.full-disk-encryption.net
1
2059
by: wideasleep | last post by:
Hello Everyone, I have to set up a electronic form for recording additions to a chemical proccess where I work. Think of this as a big kitchen but instead of food products we have chemicals. So here's the lowdown on this. In each record there are two fields where a product is added to the process called LBS and CODE. One is of course for the amount and the other is the product code. After this is entered in we have someone come over to...
1
2068
by: fabiola1 | last post by:
I'm using Ms-access 2003.I have a table called users it has two fields called Username and password.I have created a form called security interface.where the user enters the username and password.Can you check the following code.it is not working.I want the code to verify if the entered password and username is correct and open a form or else tell the user to re-enter. Dim STDOCNAME As String Dim stuser_login As String ...
0
9487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9735
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8736
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7285
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3828
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 we have to send another system
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.