S
Stephanie
Hi. I have a form that has 2 subforms, and based on values in the form I'd
like one subform activated and the other grayed-out. The main form,
Individuals, is a tabbed form, if that matters. I always hate to show my
code, as it is usually very bad, but here goes:
Private Sub Form_Current()
If MemberCategoryID = 1 Then
Me.sfrmBucksByFamily.Enabled = Nz((Me.PrimaryFamilyMember = "Yes"),
False)
Else
Me.sfrmITABucksSum.Enabled = Nz((Me.PrimaryFamilyMember = "No"), True)
End If
End Sub
In which, I managed to always gray-out the sfrmBucksByFamily, and not
accomplish anything. I'd appreciate any suggestions. If possible, I'd like
the subforms to sit on top of each other, and just show the appropriate one.
I also want to make sure that I don't have difficulties with entering New
Records- some of my attempts at Enable make it so I get errors before I've
even done anything when entering a new record (I think Nz is suppose to help
with that).
I appreciate the help!
like one subform activated and the other grayed-out. The main form,
Individuals, is a tabbed form, if that matters. I always hate to show my
code, as it is usually very bad, but here goes:
Private Sub Form_Current()
If MemberCategoryID = 1 Then
Me.sfrmBucksByFamily.Enabled = Nz((Me.PrimaryFamilyMember = "Yes"),
False)
Else
Me.sfrmITABucksSum.Enabled = Nz((Me.PrimaryFamilyMember = "No"), True)
End If
End Sub
In which, I managed to always gray-out the sfrmBucksByFamily, and not
accomplish anything. I'd appreciate any suggestions. If possible, I'd like
the subforms to sit on top of each other, and just show the appropriate one.
I also want to make sure that I don't have difficulties with entering New
Records- some of my attempts at Enable make it so I get errors before I've
even done anything when entering a new record (I think Nz is suppose to help
with that).
I appreciate the help!