D
DS
I need help with a Loop statement.
Tag 9 is a Yes/No CheckBox
Tag 99 is a label
Privileges is a Table
SecureID is a field in the table
and Me.TxtID is the field on the form that tells
you which ID Nimber to run the Loop on.
The Loop should run once and then stop.
Dim Ctl As Control
Loop through "Privileges" where SecureID = Me.TxtID
If Privileges.Active = -1 Then
Ctl.Tag 9 = -1 and
Ctl.Tag 99 = True
Else
If Privileges.Active = 0 Then
Ctl.Tag 9 = 0 and
Ctl.Tag 99 = False
End If
End Loop
Any help appreciated
Thanks
DS
Tag 9 is a Yes/No CheckBox
Tag 99 is a label
Privileges is a Table
SecureID is a field in the table
and Me.TxtID is the field on the form that tells
you which ID Nimber to run the Loop on.
The Loop should run once and then stop.
Dim Ctl As Control
Loop through "Privileges" where SecureID = Me.TxtID
If Privileges.Active = -1 Then
Ctl.Tag 9 = -1 and
Ctl.Tag 99 = True
Else
If Privileges.Active = 0 Then
Ctl.Tag 9 = 0 and
Ctl.Tag 99 = False
End If
End Loop
Any help appreciated
Thanks
DS