Hiding a Combo Box

  • Thread starter Thread starter Brennan
  • Start date Start date
B

Brennan

Hello:

I have an application in which the end-users enter data
into a form to generate statements. The users have
requested that when adding statements, they be presented
with the form in Add mode only. However, when they want
to review or adjust statements they want to see all of the
available statements and then be able to search for the
statement they want.

The users navigate to the Statement form via a switchboard.
There are 2 switchboard items which point to the statement
form and either opens it in Add or Edit mode. There is a
combo box on the form that references the Statement number
and allows the user to pull up the record they desire.

What I would like to do is hide this control if the form
is opened up in Add mode and I have no idea how to do this.

Any suggestions would be appreciated.
Brennan
 
Brennan,

If I understand you correctly, you just need to add another line to the
code behind the button that you use to open the form in Add mode,
something like...
Forms!NameOfForm!NameOfCombobox.Visible = False
.... or, many people would prefer...
Forms!NameOfForm!NameOfCombobox.Enabled = False
 
Back
Top