Results 1 to 5 of 5
  1. #1
    phineas629 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    47

    need query with duplicate aliases into excel


    Hi all,

    I am editing a query that exports into Excel. The problem is I now need duplicate named columns in the excel file. I am getting error ''duplicate output alias''. Any suggestions for a workaround? I just need the duplicates in the excel file. Duplicate columns does not exist in the database.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Open the Excel file as an object in VBA and manipulate the object.

    Why is this needed?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    phineas629 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    47
    In excel, the duplicate columns identifies properties of other columns. It is a requirement.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    But why do they have to have same header?

    If they must be same then I still think will have to open the Excel as an object in VBA and manipulate to set those cells with whatever text you want.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    phineas629 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    47
    Thanks, the requirements were changed but I'll keep your recommendations in mind if I should run into a similar situation.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2014, 09:29 AM
  2. Replies: 8
    Last Post: 03-22-2012, 08:48 AM
  3. Finding Table Aliases
    By hfile in forum Access
    Replies: 2
    Last Post: 12-26-2011, 02:38 PM
  4. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  5. Replies: 2
    Last Post: 06-13-2011, 06:04 PM

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