G
GD
Does it matter if code syntax or entries are changed (or typed over) after
the fact? Is the function thereby altered or disrupted?
For example, if I change the table name in:
If Val(DLookup("[Level]", "tblUsers", "[UserID]='" & CurrentUser() &
"'")) = 2 Then
boxDCMgt.Visible = False
Else
boxDCMgt.Visible = True
End If
to:
If Val(DLookup("[Level]", "004UserAuth_tbl", "[UserID]='" &
CurrentUser() & "'")) = 2 Then
boxDCMgt.Visible = False
Else
boxDCMgt.Visible = True
End If
will the code still work? Or if I add Me. to my boxes after the code is
already written:
If Val(DLookup("[Level]", "004UserAuth_tbl", "[UserID]='" &
CurrentUser() & "'")) = 2 Then
Me.boxDCMgt.Visible = False
Else
Me.boxDCMgt.Visible = True
End If
should that have any effect?
Thanks for your time!!
the fact? Is the function thereby altered or disrupted?
For example, if I change the table name in:
If Val(DLookup("[Level]", "tblUsers", "[UserID]='" & CurrentUser() &
"'")) = 2 Then
boxDCMgt.Visible = False
Else
boxDCMgt.Visible = True
End If
to:
If Val(DLookup("[Level]", "004UserAuth_tbl", "[UserID]='" &
CurrentUser() & "'")) = 2 Then
boxDCMgt.Visible = False
Else
boxDCMgt.Visible = True
End If
will the code still work? Or if I add Me. to my boxes after the code is
already written:
If Val(DLookup("[Level]", "004UserAuth_tbl", "[UserID]='" &
CurrentUser() & "'")) = 2 Then
Me.boxDCMgt.Visible = False
Else
Me.boxDCMgt.Visible = True
End If
should that have any effect?
Thanks for your time!!