T
trekgoes2malaysia
Occassionally, when running code in VBA, the "DoCmd.Close" command
ends up closing all the forms I have open in my Access database file
when all I want it to do is close the form or query I last opened with
the DoCmd statement. Why is this happeing and how can I avoid it in
the future?
Example below:
DoCmd.OpenForm stDocName,,,stfilter
getathlete = Me!fname
DoCmd.Close
ends up closing all the forms I have open in my Access database file
when all I want it to do is close the form or query I last opened with
the DoCmd statement. Why is this happeing and how can I avoid it in
the future?
Example below:
DoCmd.OpenForm stDocName,,,stfilter
getathlete = Me!fname
DoCmd.Close