Solved

How do you find a predefined SpecificationName in a database?

Posted on 2013-01-14
7
462 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

856 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