C
Christopher Glaeser
Command button "Open" sets Me.RecordSource to "qryWorkOrdersOpen", and
Command button "All" sets Me.RecordSource to "tblWordOrders". Users can
view Open/All workorders by toggling on these two command buttons. Couple
quick questions ...
1. Me.RecordSource apparently stays set to the last command, even after the
form is closed and then reopened. I would have guessed the form would open
with the source specified on the form design. If I want to change the
behavior, where is the recommended place to put the code to open the form
with a default RecordSource?
2. Regarding the design of these two command buttons that can change the
record source back and forth, should the last-selected comman button be
greyed out to make it clear the command has already been selected? What is
the code to accomplish this?
Best,
Christopher
Command button "All" sets Me.RecordSource to "tblWordOrders". Users can
view Open/All workorders by toggling on these two command buttons. Couple
quick questions ...
1. Me.RecordSource apparently stays set to the last command, even after the
form is closed and then reopened. I would have guessed the form would open
with the source specified on the form design. If I want to change the
behavior, where is the recommended place to put the code to open the form
with a default RecordSource?
2. Regarding the design of these two command buttons that can change the
record source back and forth, should the last-selected comman button be
greyed out to make it clear the command has already been selected? What is
the code to accomplish this?
Best,
Christopher