Results 1 to 3 of 3
  1. #1
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115

    export to excel - formated

    Hi
    What I am trying to do is to export into excel a query results.
    So far everything works fine, but when I open the excel file then I discover that the file contains the famous error: Number stored as Text
    How can I make it so that the exported excel file will have the data formated cells as General for ex?
    open to any ideas

    Here is the code I use so far:
    Private Sub SEND_file_Click()
    Dim Filename As String
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "STRIPES_EXPORT", "\\filepath\STRIPES_PR.xlsx", True
    MsgBox " STRIPES -TABLE CREATED " & vbCrLf _


    & "FILE SAVED" & vbCrLf, vbYes + vbInformation, "SUCCESSFULLY CREATED"
    End Sub

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Is the field causing problems in your "STRIPES_EXPORT" table/query a direct field or a calculation?
    If it is a calculation, what is the calculation?
    If it is a straight field, what is the datatype of that field in Access?
    Are you exporting any blanks or nulls in this field?

  3. #3
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    Great input
    base on your analysis I just changed the structure of the linked table so that
    I have the results appended in that table as numbers.
    then the excel export worked properly and with no errors.

    thanks

    Webisti

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  2. Excel Export Tab Name
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 06-28-2011, 08:36 AM
  3. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM
  4. Trying to export to Excel
    By BigCat in forum Programming
    Replies: 19
    Last Post: 05-19-2011, 01:49 AM
  5. Export to Excel
    By vaikz in forum Import/Export Data
    Replies: 3
    Last Post: 03-25-2009, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums