473,769 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password Fields

72 New Member
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 2060
ADezii
8,834 Recognized Expert Expert
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
6077
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 this: private static final int DEFAULT_MINIMUM_LENGTH = ??????
20
3559
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 to do it for how ever many characters there are in the record ? Appreciate your help
7
8695
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, somehow I always end up with error messages and functions not working right. Can someone please help me? I have a form, inside is 1 Text Field and 2 Password Fields. What I'm looking to do is: - Make sure password fields are equal - Set...
4
1819
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 100700.1262@compuserve.com It works extremely well - very useful if you want a split database, but need to move it from folder to folder or computer to computer without having
8
2137
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 of the post back, passwords entered by the user lose their values and the user gets an error message upon final validation when they submit. Here's an illustration
1
2368
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 of the post back, passwords entered by the user lose their values and the user gets an error message upon final validation when they submit. Here's an illustration:
5
2525
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 on page refreshes? Can this be stopped? Help! Also, I can't auto-populate the password field uising a database value. Help. Thanx.
2
1187
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 code: Response.Cookies("Email").Value = txtEMail.Text Response.Cookies("Email").Expires = DateTime.Now.AddDays(30) The cookie is accessed using the following code: txtEMail.Text = Request.Cookies("Email").Value
1
4544
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 someone help please. function changepass_submit() { if (document.Eform.USERNAME.value=="") { alert("Please Enter Value for Username"); document.Eform.USERNAME.focus();} else if (document.Eform.PASSWORD.value=="") { alert("Please Enter Value...
3
2996
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 do this. Can someone help me? Thanks. Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
9423
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
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9865
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
8873
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
7413
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
5310
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3965
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
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.