T
Tara
I have a form that I use in 2 ways in my database. On this form I have a
command button used to find clients by last name. Depending on how the form
is opened, I want the command button to be either visible or invisible. In
one instance the form is called in order to add a new record. In this
circumstance, it's set to open to a new record and only allows additions.
Existing records cannot be accessed. I would like the command button to be
invisible when the form opens in this state. In the other instance, the
form is used to view/edit existing records and is set to open to view all
records. I'd like the command button to be visible when the form opens this
way. I assume I need to start the coding process by creating a standalone
procedure and then calling the procedure at the appropriate time. But I'm
not sure how to code the standalone procedure.
Thanks!
Tara
command button used to find clients by last name. Depending on how the form
is opened, I want the command button to be either visible or invisible. In
one instance the form is called in order to add a new record. In this
circumstance, it's set to open to a new record and only allows additions.
Existing records cannot be accessed. I would like the command button to be
invisible when the form opens in this state. In the other instance, the
form is used to view/edit existing records and is set to open to view all
records. I'd like the command button to be visible when the form opens this
way. I assume I need to start the coding process by creating a standalone
procedure and then calling the procedure at the appropriate time. But I'm
not sure how to code the standalone procedure.
Thanks!
Tara