Results 1 to 2 of 2
  1. #1
    vinz is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    3

    Access fails export query to XML

    Hi all,



    I have been having major issues with Access exporting queries.
    Many, many issues. In fact I am very surprised that I don't see tons of posts around with poor users swearing to Microsoft, as I would do.

    All the failing queries look just fine when in datasheet view. The Access engine can resolve them, problems occur when queries are interpreted by some other engine to make the export.
    If a query yelds results internally but fails in export, to me is a bug.

    If I make tables of these queries and export the table all is fine, if I export the query all I get is this
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot generated="2012-01-16T17:16:48" xmlns:od="urn:schemas-microsoft-com:officedata"/>
    Why can I export tables but not queries?

    Sometimes I find the troubling field in my query. Suppose
    Code:
    IIf([somefield] Is Null,"somestring","some other") AS [TroubleField]
    If I change it into
    Code:
    IIf([somefield] Is Null,0,1) AS [TroubleField]
    then it all works. It's useless, but works. This doesn't make much sense to me.

    So my question is, has this occurred to anyone else, or am I alone in my world of pain? Anyone has figured out what is going on?

    Thank you,
    vinz

  2. #2
    brianscook is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    1

    Having the same issue...

    Quote Originally Posted by vinz View Post
    Hi all,

    I have been having major issues with Access exporting queries.
    Many, many issues. In fact I am very surprised that I don't see tons of posts around with poor users swearing to Microsoft, as I would do.

    All the failing queries look just fine when in datasheet view. The Access engine can resolve them, problems occur when queries are interpreted by some other engine to make the export.
    If a query yelds results internally but fails in export, to me is a bug.

    If I make tables of these queries and export the table all is fine, if I export the query all I get is this
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot generated="2012-01-16T17:16:48" xmlns:od="urn:schemas-microsoft-com:officedata"/>
    Why can I export tables but not queries?

    Sometimes I find the troubling field in my query. Suppose
    Code:
    IIf([somefield] Is Null,"somestring","some other") AS [TroubleField]
    If I change it into
    Code:
    IIf([somefield] Is Null,0,1) AS [TroubleField]
    then it all works. It's useless, but works. This doesn't make much sense to me.

    So my question is, has this occurred to anyone else, or am I alone in my world of pain? Anyone has figured out what is going on?

    Thank you,
    vinz
    I haven't been able to find any help at all yet...I know this doesn't help, but surely someone has an answer. In my case, my query produces no NULL fields. Thanks
    Last edited by brianscook; 09-16-2014 at 07:33 AM. Reason: clarification

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

Similar Threads

  1. excel link with access differs from simple export from access
    By M0RDANT in forum Import/Export Data
    Replies: 4
    Last Post: 03-25-2013, 02:43 PM
  2. Access 2010 fails where 2007 worked
    By dick in forum Access
    Replies: 3
    Last Post: 10-16-2010, 01:20 AM
  3. Requery fails
    By Dega in forum Forms
    Replies: 3
    Last Post: 09-28-2010, 08:35 AM
  4. Parameter Query Fails Occasionally
    By jp2access in forum Programming
    Replies: 0
    Last Post: 08-26-2009, 07:33 AM
  5. Export Access reports/query results to Outlook Calendar/Task
    By kfinpgh in forum Import/Export Data
    Replies: 0
    Last Post: 02-22-2007, 01:09 PM

Tags for this Thread

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