I have a control on a form with a DropDown object. When a certain value is selected I want to disable several other objects within the RECORD.
Here is my code so far. Of course this changes the objects for all records. I want to limit it to only one record...each record may have a different selection.
Also, this is going to be used on several Forms with the same objects...trust me...I have to do it this way...how can I make this global so it can be called from any of my forms.
Private Sub TngProdDD_AfterUpdate()
If Me.TngProdDD = "Analysis/Research" Then
Me.TypeRevDD.Enabled = False
Me.ATA_Chapter.Enabled = False
Me.Sub_Chapter.Enabled = False
Me.Pageset___Media_Identifier.Enabled = False
Me.Team_Review_of_Work_Complete.Enabled = False
Me.LeadAppDD.Enabled = False
Me.Date_Workflow_Approved.Enabled = False
Me.Additional_Comments.Enabled = False
Else
Me.TypeRevDD.Enabled = True
Me.ATA_Chapter.Enabled = True
Me.Sub_Chapter.Enabled = True
Me.Pageset___Media_Identifier.Enabled = True
Me.Team_Review_of_Work_Complete.Enabled = True
Me.LeadAppDD.Enabled = True
Me.Date_Workflow_Approved.Enabled = True
Me.Additional_Comments.Enabled = True
End If
End Sub
Thanks......
Here is my code so far. Of course this changes the objects for all records. I want to limit it to only one record...each record may have a different selection.
Also, this is going to be used on several Forms with the same objects...trust me...I have to do it this way...how can I make this global so it can be called from any of my forms.
Private Sub TngProdDD_AfterUpdate()
If Me.TngProdDD = "Analysis/Research" Then
Me.TypeRevDD.Enabled = False
Me.ATA_Chapter.Enabled = False
Me.Sub_Chapter.Enabled = False
Me.Pageset___Media_Identifier.Enabled = False
Me.Team_Review_of_Work_Complete.Enabled = False
Me.LeadAppDD.Enabled = False
Me.Date_Workflow_Approved.Enabled = False
Me.Additional_Comments.Enabled = False
Else
Me.TypeRevDD.Enabled = True
Me.ATA_Chapter.Enabled = True
Me.Sub_Chapter.Enabled = True
Me.Pageset___Media_Identifier.Enabled = True
Me.Team_Review_of_Work_Complete.Enabled = True
Me.LeadAppDD.Enabled = True
Me.Date_Workflow_Approved.Enabled = True
Me.Additional_Comments.Enabled = True
End If
End Sub
Thanks......