Solved

Excel Add-in Build Access Import Specification interface

Posted on 2013-12-05
14
425 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:murbro
Comment Utility
I don't appreciate your tone
0
 
LVL 29

Expert Comment

by:gowflow
Comment Utility
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
Comment Utility
Thanks. I will think of a clearer way to pose the question
0
 
LVL 29

Expert Comment

by:gowflow
Comment Utility
ok will wait for your clarification.
gowflow
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:murbro
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks very much
0
 

Author Comment

by:murbro
Comment Utility
0
 
LVL 29

Expert Comment

by:gowflow
Comment Utility
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
Comment Utility
Ok Thanks
0
 
LVL 29

Expert Comment

by:gowflow
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel 2013 Problem 12 44
Autocomplete textbox in MS Access 2016 4 19
Need an Excel cell value to freeze once entered 8 28
onOpen 14 35
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now