J
Jordan
I have a routine in a module that I use to pass and order number and set the
focus to a form, change the contents of a control, then fire its after
update event to update the form. Normally I call the form and controls
specifically, but I want to change the form name to a variable so I can use
the same routine for multiple forms. Here is the code I use now
Function UpdateFormOrderNumber(intOrderNumber as Integer)
Forms!frmOrders.SetFocus
Forms!frmOrders!cmbCurrent.SetFocus
Forms!frmOrders!cmbCurrent = intOrderNumber
Call Form_frmTuningData.cmbCurrent_AfterUpdate
End Function
I want to change it so I can also pass the form name as a variable so I can
use this routine to update any form I have.
focus to a form, change the contents of a control, then fire its after
update event to update the form. Normally I call the form and controls
specifically, but I want to change the form name to a variable so I can use
the same routine for multiple forms. Here is the code I use now
Function UpdateFormOrderNumber(intOrderNumber as Integer)
Forms!frmOrders.SetFocus
Forms!frmOrders!cmbCurrent.SetFocus
Forms!frmOrders!cmbCurrent = intOrderNumber
Call Form_frmTuningData.cmbCurrent_AfterUpdate
End Function
I want to change it so I can also pass the form name as a variable so I can
use this routine to update any form I have.