Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 8th, 2005, 01:27 PM
summer brew summer brew is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 12 summer brew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 8 sec
Reputation Power: 0
Error: Duplicate Output Destination

This is the code that I am using:
Private Sub Command6_Click()
DoCmd.TransferText acImportDelim, "", "CustomerAlignment", "E:\MonthlyAlign.csv", True
End Sub


However, I'm getting the error Duplicate Output Destination for a field that appears twice within the CSV file. I need to retain this field, but I do not know how to get around this error.

When I manually import the file with the Import Wizard there isn't a problem, just when I import the file with VBA.

Thanks in advance,
Paul

Reply With Quote
  #2  
Old July 8th, 2005, 03:50 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
I believe your problem is in your csv 1st row. You might have two columns with the same name as one of the fields in your access table. Try renaming the 1st row names in the csv file to match your Access table field names exactly and then run your code.

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Error: Duplicate Output Destination


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT