473,385 Members | 2,029 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,385 software developers and data experts.

Password Fields

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 verify that this is correct. There is another field (CHKD BY) where this person will type in a personal password for verification that everything is correct before it's added.

Here's what I need. Each record doesn't always record an add of product. I would like be able to set this up where entry in the CODE or LBS fields will trigger a requirement of a password in the CHKD BY field other wise you cannot continue.

Now a second part of this is that we need to make sure the operator for this process doesn't use his own code. I have an initial password field for logging into the database. Is there anyway that the CHKD BY field can deny the password based on what is entered into the inital login area?

Currently Running Vista and Access 2007.

All help is appreciated.
Jun 8 '07 #1
1 2042
ADezii
8,834 Expert 8TB
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 verify that this is correct. There is another field (CHKD BY) where this person will type in a personal password for verification that everything is correct before it's added.

Here's what I need. Each record doesn't always record an add of product. I would like be able to set this up where entry in the CODE or LBS fields will trigger a requirement of a password in the CHKD BY field other wise you cannot continue.

Now a second part of this is that we need to make sure the operator for this process doesn't use his own code. I have an initial password field for logging into the database. Is there anyway that the CHKD BY field can deny the password based on what is entered into the inital login area?

Currently Running Vista and Access 2007.

All help is appreciated.
In the BeforeUpdate() Event of your Form, write code similar to that listed below:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeUpdate(Cancel As Integer)
  2.   If Not IsNull(Me![txtCode]) Or Not IsNull(Me![txtLBS]) Then
  3.     If IsNull(Me![txtCHKD_BY]) Then
  4.       MsgBox "You must enter a Password in the CHKD BY Field in order to proceed", _
  5.              vbExclamation, "Required Field Missing"
  6.       Cancel = True
  7.     End If
  8.   End If
  9. End Sub
Jun 9 '07 #2

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

Similar topics

4
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like...
20
by: David | last post by:
Hi, I have a field from my recordset called RS("Password"). If I wish to display each character as an asterix '*' how do I go about it. I've seen the replace function, but cannot work out how...
7
by: Mike | last post by:
I've been trying for the past week to put a simple code together. I have done a LOT of searching, found scripts showing the functions I would like to use, however when I mix them it all goes wrong,...
4
by: MS | last post by:
Access 97 I'm trying to check a table and add fields if necessary using code to a BE MDB. At the moment I'm reconnecting to the BE using code based on code written by Peter Vukovic...
8
by: dwa | last post by:
All, We're trying to determine how to deal with password fields losing their state on a post back. We've got a form that implements post backs to carry out server side processing. As a...
1
by: dwa | last post by:
All, We're trying to determine how to deal with password fields losing their state on a post back. We've got a form that implements post backs to carry out server side processing. As a result...
5
by: Chris | last post by:
why is it that password fields: <asp:TextBox Id="txtuserpassword1" TextMode="password" class="textbox" maxlength="20" Columns="15" Runat="Server" /><br> clear everytime validation kicks in or...
2
by: Elroyskimms | last post by:
The form has two text fields... one called txtEmail and one called txtPassword. The username is the email address (txtEmail) and the password is txtPassword. Storing cookie using the following...
1
by: znadeem | last post by:
Hi, I am new to JavaScript and I am trying to control New Password fields. These fields are not allowed to except any symbols, especially @ / \. The current code I've is not working at all. Could...
3
by: Nathan Sokalski | last post by:
I have an UpdatePanel that needs to maintain the value of several TextBoxes with TextMode=Password. Since the browser clears all password fields client-side, I obviously need to use JavaScript 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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.