Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.Close not working

Status
Not open for further replies.

theConjurian

IS-IT--Management
May 4, 2002
35
0
0
CA
My app has been running for years and all of a sudden my line of code to close and save a report has stopped working. I am running Office 365 on Windows 10.

I have attached the relevant subroutine to this post.

What do you think?

Ron

 
 https://files.engineering.com/getfile.aspx?folder=f85be090-5a5c-4955-9e8b-9f443210e8d8&file=CreatePDFReport.txt
The tag formatting you added just adds confusion. To use that, you need to post the code inside your post, not save as an attachment, just info for future.

I will say that line of code is inside three conditional statements. Have you tried stepping through the code and tracking the values of the conditions to verify that the code is still reaching said line?

When you say it does not work, what do you mean? Does nothing? Does something differently than expected? I assume you mean it doesn't close your report.

What have you checked, what have you tried to resolve this yourself?

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top