Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Save changes all reports

Avatar of Tom Crowfoot
Tom CrowfootFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft AccessSQL
13 Comments1 Solution222 ViewsLast Modified:
Dear Experts

I have a piece of code which creates a series of reports based on a record set.  This works fine, but the reports, whilst closed so not save, so when i come to close the database after running this action I get loads save prompts.

Can anybody help
Private Sub Next1_Click()
Dim rst As Recordset
Set rst = RecordsetClone
Do Until rst.EOF
DoCmd.CopyObject , rst!RptName, acReport, "Template"
DoCmd.OpenReport rst!RptName, acViewDesign, , , acHidden
With Reports(rst!RptName)
    .RecordSource = rst!QryName
    .Tag = rst!Email
    DoCmd.Close , rst!RptName, acSavePrompt
End With
DoCmd.SetWarnings True
End Sub
Avatar of Jez Walters
Jez WaltersFlag of United Kingdom of Great Britain and Northern Ireland imageBusiness Data Analyst

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answers