Matthew Snook
NW Salmon Database
- Local time
- Today, 23:50
- Joined
- Apr 19, 2001
- Messages
- 133
In my attempts to control the users, I have lost control of one of my controls.
I have a subform with stacked controls. In the "ON Current" event of my "Metrics" subform, I check for data in two bound controls. If they are null, I make them invisible; a large button is made visible to cover the area occupied by the (now invisible) empty controls. If either of them contains data, the button is made invisible and the other controls are visible. I had to do this because the query linking the data in the subform will allow edits but not data entry.
Now this button takes the user out to a popup form which accepts data entry into unbound boxes, then contructs an append query and inserts the data into the appropriate table. So far so good. However, upon exiting the popup data entry form the user is again looking at the button in the original subform, which still has the focus! There is now data in the invisible fields, and I'm trying to get the button to go away and the text boxes to show the new data.
I have tried putting code into the popup which would hide the button which called it, but that button still has the focus!
Does anybody know how to get the subform to redraw itself based on new data that was entered in another form?
Thanks,
Matt
I have a subform with stacked controls. In the "ON Current" event of my "Metrics" subform, I check for data in two bound controls. If they are null, I make them invisible; a large button is made visible to cover the area occupied by the (now invisible) empty controls. If either of them contains data, the button is made invisible and the other controls are visible. I had to do this because the query linking the data in the subform will allow edits but not data entry.
Now this button takes the user out to a popup form which accepts data entry into unbound boxes, then contructs an append query and inserts the data into the appropriate table. So far so good. However, upon exiting the popup data entry form the user is again looking at the button in the original subform, which still has the focus! There is now data in the invisible fields, and I'm trying to get the button to go away and the text boxes to show the new data.
I have tried putting code into the popup which would hide the button which called it, but that button still has the focus!
Does anybody know how to get the subform to redraw itself based on new data that was entered in another form?
Thanks,
Matt