Hi all,
Thanks to the help previously I have managed to create a Combo Box to select information. I am getting good at this!!!
On my form I have details of customers and my combo box allows me to update their progress. Once updated a new text box appears, which remains not visible, to allow me to input more info.
The problem - once I input the new data into the text box, I want it to stay visible, not disappear when I close the form down.
Here is my code -
Private Sub Referral_Outcome_Code_AfterUpdate()
If Me.[Referral Outcome Code].Value = "No Contact" Then
Me.Label91.Visible = True
Me.WhyNoContact.Visible = True
Me.Label90.Visible = False
Me.WhySupportRefusedbyTenant.Visible = False
Me.Label89.Visible = False
Me.WhySupportRefusedbyAgency.Visible = False
Me.Label88.Visible = False
Me.SupportWorkerName.Visible = False
End If
If Me.[Referral Outcome Code].Value = "Support Refused by Tenant" Then
Me.Label91.Visible = False
Me.WhyNoContact.Visible = False
Me.Label90.Visible = True
Me.WhySupportRefusedbyTenant.Visible = True
Me.Label89.Visible = False
Me.WhySupportRefusedbyAgency.Visible = False
Me.Label88.Visible = False
Me.SupportWorkerName.Visible = False
End If
If Me.[Referral Outcome Code].Value = "Support Refused by Agency" Then
Me.Label91.Visible = False
Me.WhyNoContact.Visible = False
Me.Label90.Visible = False
Me.WhySupportRefusedbyTenant.Visible = False
Me.Label89.Visible = True
Me.WhySupportRefusedbyAgency.Visible = True
Me.Label88.Visible = False
Me.SupportWorkerName.Visible = False
End If
If Me.[Referral Outcome Code].Value = "Support Commenced" Then
Me.Label91.Visible = False
Me.WhyNoContact.Visible = False
Me.Label90.Visible = False
Me.WhySupportRefusedbyTenant.Visible = False
Me.Label89.Visible = False
Me.WhySupportRefusedbyAgency.Visible = False
Me.Label88.Visible = True
Me.SupportWorkerName.Visible = True
End If
End Sub
How do I make it stay on screen once updated??
Thanks
Thanks to the help previously I have managed to create a Combo Box to select information. I am getting good at this!!!
On my form I have details of customers and my combo box allows me to update their progress. Once updated a new text box appears, which remains not visible, to allow me to input more info.
The problem - once I input the new data into the text box, I want it to stay visible, not disappear when I close the form down.
Here is my code -
Private Sub Referral_Outcome_Code_AfterUpdate()
If Me.[Referral Outcome Code].Value = "No Contact" Then
Me.Label91.Visible = True
Me.WhyNoContact.Visible = True
Me.Label90.Visible = False
Me.WhySupportRefusedbyTenant.Visible = False
Me.Label89.Visible = False
Me.WhySupportRefusedbyAgency.Visible = False
Me.Label88.Visible = False
Me.SupportWorkerName.Visible = False
End If
If Me.[Referral Outcome Code].Value = "Support Refused by Tenant" Then
Me.Label91.Visible = False
Me.WhyNoContact.Visible = False
Me.Label90.Visible = True
Me.WhySupportRefusedbyTenant.Visible = True
Me.Label89.Visible = False
Me.WhySupportRefusedbyAgency.Visible = False
Me.Label88.Visible = False
Me.SupportWorkerName.Visible = False
End If
If Me.[Referral Outcome Code].Value = "Support Refused by Agency" Then
Me.Label91.Visible = False
Me.WhyNoContact.Visible = False
Me.Label90.Visible = False
Me.WhySupportRefusedbyTenant.Visible = False
Me.Label89.Visible = True
Me.WhySupportRefusedbyAgency.Visible = True
Me.Label88.Visible = False
Me.SupportWorkerName.Visible = False
End If
If Me.[Referral Outcome Code].Value = "Support Commenced" Then
Me.Label91.Visible = False
Me.WhyNoContact.Visible = False
Me.Label90.Visible = False
Me.WhySupportRefusedbyTenant.Visible = False
Me.Label89.Visible = False
Me.WhySupportRefusedbyAgency.Visible = False
Me.Label88.Visible = True
Me.SupportWorkerName.Visible = True
End If
End Sub
How do I make it stay on screen once updated??
Thanks