Sam Summers
Registered User.
- Local time
- Today, 12:11
- Joined
- Sep 17, 2001
- Messages
- 939
Hi,
This should be really simple but doesn't work at all?
he only thing I can think of is that I renamed this textbox the same as a combobox that the code was based on before and it did work then.
So maybe it has somehow confused Access?
This should be really simple but doesn't work at all?
he only thing I can think of is that I renamed this textbox the same as a combobox that the code was based on before and it did work then.
So maybe it has somehow confused Access?
Code:
Option Compare Database
Option Explicit
Private Sub ClientName_Change()
If Me.ClientName.Text = "TRA" Then
Forms!Main!TOSubSection_Label.Visible = True
Forms!Main!TOSubSection.Visible = True
Forms!Main!ViewDROPSSubSectionBtn.Visible = False
Forms!Main!ViewBySubSectionBtn.Visible = True
Forms!Main!DROPSSubSection_Label.Visible = False
Forms!Main!DROPSSubSection.Visible = False
Else
Forms!Main!DROPSSubSection_Label.Visible = True
Forms!Main!DROPSSubSection.Visible = True
Forms!Main!ViewBySubSectionBtn.Visible = False
Forms!Main!ViewDROPSSubSectionBtn.Visible = True
Forms!Main!TOSubSection_Label.Visible = False
Forms!Main!TOSubSection.Visible = False
End If
End Sub