Solved

How do you find a predefined SpecificationName in a database?

Posted on 2013-01-14
7
460 Views
Last Modified: 2013-01-15
I need help with this line of code:

DoCmd.TransferText acImportFixed, "ADP Import Specification AXC", tempTable, strPathNoExt & ".txt", yes

I'm supporting software someone else built, I need to find the "SpecificationName" in this line of code and change it to make an update to the import.  How do I find it "ADP Import Specification AXC" in the Access Database - it's the SpecificationName that was built by someone else but I can't seem to find it anywhere.
0
Comment
Question by:gcgcit
7 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 38774810
It's stored in a hidden system table.  Simplest way to get to it is use the import export wizard.  

Once you start dealing with the file layout, there is a button to take you to the specs.  There you can work with, open, and save specs.

Jim.
0
 
LVL 57
ID: 38774815
BTW if you state which Access version, I can give you some screen shots on getting there if you need them.

Jim.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38774824
It will vary based on your version of Access, but generally:

External Data --> Import
Browse to a file of the type you want to import
Click the "Advanced..." button

(You should see a listing of any predefined import specifications in your application)
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:gcgcit
ID: 38774832
I'm using Access 2003
0
 

Author Comment

by:gcgcit
ID: 38774842
Screenshots would be super helpful thanks.
0
 

Author Comment

by:gcgcit
ID: 38774972
I don't know where to search to import these files.

I've gone into Tools >> Options and indicated to show System Tools.  This did show some hidden tables with fields that are defining the import... problem is... the MSysIMEXColumns table with the fields doesn't allow me to add more rows... I need to add two rows to this table with the 2 new fields we are importing... HELP!
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 38774992
xhere are the steps to create the import spec file

'
1. File>get external data>import
2. select in the File of types box   Text files (*.txt etc..
3. select the file
4. in the import text wizard window select  delimited/fixed
5. Click advanced
6. in the import specification window
    type the name of the field in the Field Name column
    (here you can use the field names of the destination table, specify data type,
      check the box Skip if you do not want to import the column)


7 click save as, give the specification a name  <-- this is the specification name that you will use in the command line below



to retrieve your inport spec file, do 1 to 5 from above
see image Above
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

932 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

14 Experts available now in Live!

Get 1:1 Help Now