Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old July 13th, 2004, 01:43 PM
johnb johnb is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 johnb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Transfer text problem adding fields

Hello:
I have an Access database program that I originally wrote and was improved by an intern who now is gone.
I am attempting to add several new fields to a table via a download of info from an existing program in the form of a text file.
The additional fields will not add to my Access table. I can open the text file in Excel and the new fields are present.
I am looking for help in understanding the Specification Name (in red below).

?? Is this specification name in some way defined somewhere and will not allow these new fields??

Is there somewhere else I should looking? Is the delim type causing problem

Thanks

John Brenner
814-207-3860 (Cell)

Private Sub Command9_Click()
If Check1 = True And Check3 = True And Check5 = True Then
Dim file As String
file = InputBox("Enter the name of the file created from the report ShipDateAnalysis under the user name JohnB in Babylon. Do not include .txt extension.", "Enter Filename")
DoCmd.DeleteObject acTable, "Date1"
DoCmd.TransferText acImportDelim, "DATE1_IMPORT", "Date1", "C:\My Documents\" & file & ".txt", True
DoCmd.DeleteObject acTable, file & "_ImportErrors"
DoCmd.Close acForm, "ImportDate1", acSaveNo
Else: MsgBox "Complete all steps listed before import.", vbOKOnly, "Complete steps"
DoCmd.Close acForm, "ImportDate1", acSaveNo
End If
End Sub

Reply With Quote
  #2  
Old July 15th, 2004, 04:16 AM
johnb johnb is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 johnb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Import wizard Advanced button

Hi:
I figured it out. For those interested I was able to modify the Specification name "Date1_Inmort" in the Import external data wizard area of Access by clicking on the advanced button during the import.
I now have the extra variables I want in my table.
Now the real fun begins.
This is an interesting site. I have learned much in the last few days, I hope this will be of use to me in the future.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Transfer text problem adding fields


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 1 hosted by Hostway