Bladerunner
Registered User.
- Local time
- Today, 04:06
- Joined
- Feb 11, 2013
- Messages
- 1,799
FrmlossRecord
cbolossreason on above form
By using the 'afterupdate' event of cbolossreason, an if/then statement checks to see if the selected item in the cbolossreason is *ADD*.
If it is true, the 'IF'statement opens the FrmLossReason ( which uses the TblLossReason) allowing the user to add a new lossreason on the fly.
After saving the new lossreason and closing the form, the first form [FrmLossRecord.cbolossreason] again gets the focus. However, I need to requery the tbllossreason to reflect the new update in the cbolossreason before the user can select the new loss reason.
Have tried to use the GotFocus for the cbolossreason but it also gets focus in the beginning, thus calling a requery where it is not needed. Is there a better way?
Thanks
Blade
.
cbolossreason on above form
By using the 'afterupdate' event of cbolossreason, an if/then statement checks to see if the selected item in the cbolossreason is *ADD*.
If it is true, the 'IF'statement opens the FrmLossReason ( which uses the TblLossReason) allowing the user to add a new lossreason on the fly.
After saving the new lossreason and closing the form, the first form [FrmLossRecord.cbolossreason] again gets the focus. However, I need to requery the tbllossreason to reflect the new update in the cbolossreason before the user can select the new loss reason.
Have tried to use the GotFocus for the cbolossreason but it also gets focus in the beginning, thus calling a requery where it is not needed. Is there a better way?
Thanks
Blade
.
Last edited: