Hi all,
As simple as this seems, this is giving me the run around!:banghead:
I have 3 check boxes in a table and form associated. Based on the values of these checkboxes, and different combinations, other controls become active or inactive. This is working fine for me in the form on current section of my code.
I decided to update a label on the form based on the values of the checkboxes. But it seems to only work for the first record in my form.
I have even tried to put the code behind a command button and I have separated the If statements but it only seems to apply to the first record of the form, and not when I scroll to the next record which has different checkbox values
Checkbox names
editing
check
closed_fund
Label name
status
code
If Editing.Value And Closed_Fund.Value = True Then
Status.Caption = "Pending Approval - Fund Closue"
Else
If Closed_Fund.Value And Check.Value = False Then
Status.Caption = "Editing In Progress"
Else
If Editing.Value And Check.Value = True Then
Status.Caption = "Pending Approval"
End If
End If
End If
In my case, the first record in my table has both editing and check values as true and the correct label caption is showing.
Any advice
Cheers
LarryB
As simple as this seems, this is giving me the run around!:banghead:
I have 3 check boxes in a table and form associated. Based on the values of these checkboxes, and different combinations, other controls become active or inactive. This is working fine for me in the form on current section of my code.
I decided to update a label on the form based on the values of the checkboxes. But it seems to only work for the first record in my form.
I have even tried to put the code behind a command button and I have separated the If statements but it only seems to apply to the first record of the form, and not when I scroll to the next record which has different checkbox values
Checkbox names
editing
check
closed_fund
Label name
status
code
If Editing.Value And Closed_Fund.Value = True Then
Status.Caption = "Pending Approval - Fund Closue"
Else
If Closed_Fund.Value And Check.Value = False Then
Status.Caption = "Editing In Progress"
Else
If Editing.Value And Check.Value = True Then
Status.Caption = "Pending Approval"
End If
End If
End If
In my case, the first record in my table has both editing and check values as true and the correct label caption is showing.
Any advice
Cheers
LarryB