D
Damon Heron
Hi gurus. I have recently had a problem with Access crashing whenever I
selected a report from a list on a form - I mean serious crashing where you
get the message to send info to MS, doesn't give you a code segment or
anything....
Anyway, the code in the click event of a cmdbutton was:
Me.visible = false
DoCmd.OpenReport stDocName, acPreview, , strWhere
The idea was to make the form invisible while the report was shown and to
make it visible with a function that fired when the report preview was
closed.
What seems to have fixed it is the following -I moved the visible code after
the openreport and
using the full reference to the form:
DoCmd.OpenReport stDocName, acPreview, , strWhere
Forms!frmAllReports.Form.Visible = False
Any ideas why my original code was a problem? Or have I really not fixed
it?
Damon
selected a report from a list on a form - I mean serious crashing where you
get the message to send info to MS, doesn't give you a code segment or
anything....
Anyway, the code in the click event of a cmdbutton was:
Me.visible = false
DoCmd.OpenReport stDocName, acPreview, , strWhere
The idea was to make the form invisible while the report was shown and to
make it visible with a function that fired when the report preview was
closed.
What seems to have fixed it is the following -I moved the visible code after
the openreport and
using the full reference to the form:
DoCmd.OpenReport stDocName, acPreview, , strWhere
Forms!frmAllReports.Form.Visible = False
Any ideas why my original code was a problem? Or have I really not fixed
it?
Damon