Advertisement

07.03.2008 at 11:20AM PDT, ID: 23537762
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

How would you modify a SUBROUTINE to SAVE or DELETE an Excel file based on a users response ?

Asked by zimmer9 in Microsoft ADP, Microsoft Excel Spreadsheet Software, Access Forms

I am developing an Access 2003 application with Excel.
I create an Access table via a stored procedure and transfer it to an Excel file for user viewing with the following statements.
Do you know how I could send a message box to the user asking if they want to Keep the Excel file or DELETE it ?

The user wants to initially view the Excel file but after they view it, I would like to ask the user the question whether or not they want to "SAVE THE EXCEL FILE OR DELETE THE EXCEL FILE ?

The Excel file is created via the DoCmd.Transferspreadsheet command. I have limited space on a server in which to KEEP the file and therefore I only want the Excel file to remain saved if the user chooses to keep the file.
------------------------------
ExportedFile = strAccessPath0 &  "AAAACCTS" & "_" & intYearSP & "_" & Format(Now, "mmddhhnnss") & ".XLS"
     
DoCmd.TransferSpreadsheet acExport, 8, "dbo.tblUDLAAAAccts", ExportedFile, True, ""

footnote = "This file represents AAA Debit Card Account Activity."
           
If isFileExist(ExportedFile) Then StartDocLexNex ExportedFile, footnote, strScreenType, txtDateFrom1099.Value, txtDateTo1099.Value

--------------------------------------------------------------

Private Sub StartDocLexNex(filename, footnote, strScreenType, txtDateFrom, txtDateTo)
 Dim xlApp As Object
 Dim xlWB As Object
 Dim xlWS As Object
 Dim intRows As Long
 
 Set xlApp = CreateObject("excel.application")
 xlApp.Visible = True
 Set xlWB = xlApp.Workbooks.Open(filename)
 Set xlWS = xlWB.Worksheets(1)
 xlWS.Columns.AutoFit
 
 intRows = xlWS.UsedRange.Rows.count

 xlWS.Cells(intRows + 5, 1).Value = footnote
 
 xlWS.Cells(intRows + 6, 1).Value = "For the period " & txtDateFrom & " To " & txtDateTo
 xlApp.ScreenUpdating = True
End Sub
Start Free Trial
[+][-]07.03.2008 at 02:09PM PDT, ID: 21929085

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 09:38AM PDT, ID: 21933918

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 09:47AM PDT, ID: 21933950

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 09:54AM PDT, ID: 21933975

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 10:16AM PDT, ID: 21934044

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft ADP, Microsoft Excel Spreadsheet Software, Access Forms
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.04.2008 at 10:59AM PDT, ID: 21934218

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 11:01AM PDT, ID: 21934223

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 12:41PM PDT, ID: 21938118

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 10:23AM PDT, ID: 21940967

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628