RexesOperator
Registered User.
- Local time
- Today, 10:42
- Joined
- Jul 15, 2006
- Messages
- 604
I would like to set the properties of a control on a form based on if it is opened in edit or add mode.
For example I use one form for both editing and adding records (the mode is changed based on the command button that calls it). I have a command button on the form for searching records I created using the command button wizard. It's kind of pointless to have it active when there is no data to search for.
I'd like to have the form opened in add mode with the button either not enabled or not visible, but in edit mode have the button enabled or visible.
This isn't essential, but it would be nice to have.
I know one option is to have the form opened by DoCmd.OpenForm, but how would I control the add/edit mode using DoCmd?
For example I use one form for both editing and adding records (the mode is changed based on the command button that calls it). I have a command button on the form for searching records I created using the command button wizard. It's kind of pointless to have it active when there is no data to search for.
I'd like to have the form opened in add mode with the button either not enabled or not visible, but in edit mode have the button enabled or visible.
This isn't essential, but it would be nice to have.
I know one option is to have the form opened by DoCmd.OpenForm, but how would I control the add/edit mode using DoCmd?