password to enter date

amna77

Active Member
Joined
May 9, 2002
Messages
251
Hi, actually in my database, I want to put password.

On my form I have two fields, One is combo box, which has names, and other one is text field, where they are going to enter date.

Now what I want to do, when some one select name from List box then he should enter data as well. Right now, when I double clik on the text box then enter password box comes up, and if password is correct then they can enter date, if not correct then I want to protect the text box, so theyc an't enter date.

Right now I have these following codes for password form.

If (Forms!frmPassword!txtpwd = Forms!frmPassword!txtverifypwd) Then
DoCmd.Save acForm, "frmApproval"

End If
If (Forms!frmPassword!txtpwd <> Forms!frmPassword!txtverifypwd) Then
Beep
MsgBox "Wrong Password", vbCritical, "Enter Passsword to Sign ECN"
End If


Thanks in Advance
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,221,544
Messages
6,160,431
Members
451,646
Latest member
mmix803

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top