Toggle Command Button based upon field value..

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

In the detail section of a form, I have a command button
that I want to enable (or make invisible) if the current
recordset has a column value of -1...how can I do
this ... I've looked through all of the events for the
detail page and can't seem to make the correlation to
disabling JUST the current button for the particular
recordset entry...

Thanks!

Eric
 
In the detail section of a form, I have a command button
that I want to enable (or make invisible) if the current
recordset has a column value of -1...how can I do
this ... I've looked through all of the events for the
detail page and can't seem to make the correlation to
disabling JUST the current button for the particular
recordset entry...

Thanks!

Eric

I'm assuming a Yes/No (-1/0) type field.

Something like this would make the command button visible if the value
is -1 (true) ...

Me.cmdMyButton.Visible = Me.MyField

Not visible if it is 0 (False)


- Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top