G
Guest
Hi
A user would like a new form (reason) to open when box_no field = "vp corr"
or "rr corr" so can add reason for correction the form reason would need to
have works order no and fg code from original form as well as reason text box
i have written following but do not know how to fill works order box on
reason form with works order value from original form
Thanks
private sub box_no_afterupdate()
dim stdocname as string
dim stlinkcriteria as string
if mid(box_no.value,4,4) = "corr" then
stDocname = "reason"
docmd.openform stdocname, , , stlinkcriteria
else
end if
A user would like a new form (reason) to open when box_no field = "vp corr"
or "rr corr" so can add reason for correction the form reason would need to
have works order no and fg code from original form as well as reason text box
i have written following but do not know how to fill works order box on
reason form with works order value from original form
Thanks
private sub box_no_afterupdate()
dim stdocname as string
dim stlinkcriteria as string
if mid(box_no.value,4,4) = "corr" then
stDocname = "reason"
docmd.openform stdocname, , , stlinkcriteria
else
end if