Edward Zuris
edzedz at comcast.net
Thu Jan 28 13:39:59 CST 2010
Dear AccessD Forum
I am doing a little automation work within a legacy
environment.
From inside some VBA code, a form is opened, given some
data, where buttons and controls are clicked.
The opened form, ft001CreateTasks, has a MsgBox asking
a Yes/No question.
What kind of handle do I use to click the YES button
on the message box modal form ?
Or are there some other way of tackling this issue ?
Thanks.
Sincerely,
Ed Zuris.
====================================================
Example Vba Code snippet
====================================================
strVar = ""
DoCmd.OpenForm "ft001CreateTasks", , , strVar
strVar = "Rake Yard"
Forms("ft001CreateTasks").cboTaskType.Value = strVar
Call Forms("ft001CreateTasks").cboTaskType_Click
. . . . now a message box open on the form . . . . .
====================================================
====================================================