Solved

Excel Add-in Build Access Import Specification interface

Posted on 2013-12-05
14
444 Views
Last Modified: 2013-12-11
Hi

I have an Excel ad-in that handles a large amount of incoming text files into
Access, The following code works fine most of the time, but there are instances where the user needs to actually build an import specification as you would in Access.
Is there something that exists in VB.net already? I realise that that is unlikely so I am looking for a little guidance either on building my own. Alternatively, is there a way to manually pull the file into Excel and somehow use this?


    appAccess.OpenCurrentDatabase(Access_File_Path)
            appAccess.Visible = True

            appAccess.DoCmd.TransferText(TransferType:=Microsoft.Office.Interop.Access.AcTextTransferType.acImportDelim, TableName:=oTableName, _
            FileName:=oTextFilePath, HasFieldNames:=True)
0
Comment
Question by:murbro
  • 7
  • 7
14 Comments
 
LVL 29

Expert Comment

by:gowflow
ID: 39704395
So what you want to do ? Acceess or Excel ?

If Excel I could help you but need to know from you what do you want to achieve in plain English
gowflow
0
 

Author Comment

by:murbro
ID: 39704542
Hi
I need to build the Access functionality used to define an import specification and I need to do this in Excel
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39704625
I said plain  English ...
meaning I need to import from access databse name so and so table xys all records into eXcel in sheet so and so starting row xyz in col abc ...

something along these lines specifics not access instructions !!!

btw if you noticed no one answered or gave any reply to your question this should give you a hint !!!
gowflow
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:murbro
ID: 39704657
I don't appreciate your tone
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39704675
Sorry if it sounded arrogant but not too expert in Access systax but can help you as much as you want in Excel. I only need to know what you want so I can do it for you. Sorry if sounded aggressive was not the intention at all.
gowflow
0
 

Author Comment

by:murbro
ID: 39704806
Thanks. I will think of a clearer way to pose the question
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39705540
ok will wait for your clarification.
gowflow
0
 

Author Comment

by:murbro
ID: 39711077
Hi

A better way to ask this question is:
Is it possible to build the Excel form used to import a delimited text file
A simple yes or no answer will suffice
Any other advice will be a bonus

1
0
 
LVL 29

Accepted Solution

by:
gowflow earned 500 total points
ID: 39711120
Well for sure yes.
I can have you a small macro that can import any text file to Excel
just post the txt file or csv excel and will do that.
gowflow
0
 

Author Closing Comment

by:murbro
ID: 39711288
Thanks very much
0
 

Author Comment

by:murbro
ID: 39711292
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39711374
tks I just commented. You have to be careful, you said "just any text file" !!! just look at my comment there.
gowflow
0
 

Author Comment

by:murbro
ID: 39711430
Ok Thanks
0
 
LVL 29

Expert Comment

by:gowflow
ID: 39711654
Thanks your kind but it didn't deserve that many points for my comment. Just wanted to draw your attention. If the other Expert object I have no problem at all he deserves the full 500 pnts !!
gowflow
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question