Hello,
I have 2 fields on my form called 'MembershipNo' and 'Status'. I would like the 'MembershipNo' to turn red and bold when the 'Status' is not 'Live'. I have done this but it changes ALL 'MembershipNo' fields to red regardless of what the status says.
I have the following code:
If Me!Status <> "Live" Then
Me!MembershipNo.ForeColor = 255
Me!MembershipNo.FontBold = True
Else
Me!MembershipNo.ForeColor = 0
Me!MembershipNo.FontBold = False
Is there a way to make only the current record change? Also, rather than AfterUpdate() is there a way to change all the records (4000) when the form opens? I have tried FormLoad and this doesn't do anything.
Many Thanks, Viv
I have 2 fields on my form called 'MembershipNo' and 'Status'. I would like the 'MembershipNo' to turn red and bold when the 'Status' is not 'Live'. I have done this but it changes ALL 'MembershipNo' fields to red regardless of what the status says.
I have the following code:
If Me!Status <> "Live" Then
Me!MembershipNo.ForeColor = 255
Me!MembershipNo.FontBold = True
Else
Me!MembershipNo.ForeColor = 0
Me!MembershipNo.FontBold = False
Is there a way to make only the current record change? Also, rather than AfterUpdate() is there a way to change all the records (4000) when the form opens? I have tried FormLoad and this doesn't do anything.
Many Thanks, Viv