So I'm trying to use an If statement based on criteria in my database and I'm not sure how I'm new to vb. The viewaccess, editaccess, and approveaccess are bits in my database.
If (Session("ViewAccess") = 1) And Session("EditAccess") = 0 And (Session("ApproveAccess") = 0) Then
btnSaveTop.Visible = False
btnSaveBottom.Visible = False
btnApproveTop.Visible = False
btnApproveBottom.Visible = False
btnRequestUnapproveTop.Visible = False
btnRequestUnapproveBottom.Visible = False
RequiredData.FreightWBS.ReadOnly = True
RequiredData.GemFeeWBS.ReadOnly = True
RequiredData.Approver.ReadOnly = True
End If
Aucun commentaire:
Enregistrer un commentaire