below is code i have written to use for a simple password action. all im trying to get is: enter a password and either make it into the next screen or not.
im not used to codeing in VB, and i think i may be trying to simulate a subroutine the way i would do it in fortran. trouble here is i really have no idea how to set it up in VB
i have spent too much time searching this forum for my answer so i decided to make a post...my first
Option Compare Database
'sets variable to check password access
Const pass As String = gigem
Private Sub secure_Enter()
Public check As Integer
'Check value is checked on doorway form entering into secured form. If it is 1 it is allowed to continue. If it is 2 it remains on the doorway form '
check = 2
If txtsecure = pass Then
check = 1
DoCmd.Close
Else
check = 2
DoCmd.Close
End If
End Sub
if you think there is a link for me that would work fine. or maybe just let me know what is the major problem here is and i can go from there.
thanks alot!
undergrad
im not used to codeing in VB, and i think i may be trying to simulate a subroutine the way i would do it in fortran. trouble here is i really have no idea how to set it up in VB
i have spent too much time searching this forum for my answer so i decided to make a post...my first
Option Compare Database
'sets variable to check password access
Const pass As String = gigem
Private Sub secure_Enter()
Public check As Integer
'Check value is checked on doorway form entering into secured form. If it is 1 it is allowed to continue. If it is 2 it remains on the doorway form '
check = 2
If txtsecure = pass Then
check = 1
DoCmd.Close
Else
check = 2
DoCmd.Close
End If
End Sub
if you think there is a link for me that would work fine. or maybe just let me know what is the major problem here is and i can go from there.
thanks alot!
undergrad