I have many forms, in every form, I need to validate a Process, so instead of coding to every forms, I could think of using module, but not sure how to do it.
(1). In each form how do I call the module to check the Process and (2) return me the result.
The result return would allow me to fire up the next form. For example if result return is "Frmcust"
I would then code frmcust.show
In the module I use to check the process, but not so sure how to write the
proper coding.
Module
if process = "CUST" then
frmName="FrmCus t"
elseif process = "VENDOR" then
frmName = "FrmVendor"
elseif process = "STOCK" then
frmName="frmSto ck
end if
(1). In each form how do I call the module to check the Process and (2) return me the result.
The result return would allow me to fire up the next form. For example if result return is "Frmcust"
I would then code frmcust.show
In the module I use to check the process, but not so sure how to write the
proper coding.
Module
if process = "CUST" then
frmName="FrmCus t"
elseif process = "VENDOR" then
frmName = "FrmVendor"
elseif process = "STOCK" then
frmName="frmSto ck
end if
Comment