Results 1 to 4 of 4
  1. #1
    cmcfarland is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jul 2014
    Location
    Houston, TX
    Posts
    24

    Import CSV - Using a Specification - Default Value in Column - Automating The Import

    Hello!



    I'm an MS SQL person working in an MS Access world for a little while here, and while I'm enjoying the experience I do find that I'm at a loss for being able to get some things done that would be really easy for me to pull off in MS SQL.

    So, I wonder what you guys will think about what I'm trying to do...

    Two main goals:

    First is to have my Import process run automatically, instead of having to fire off the process from an Outlook Task, which seems to kind of be the available level of automation where the Access GUI is concerned.

    I've looked into this a bit, and so far I've been overwhelmed with what's involved in writing a macro to get this done, and I think I've seen some .vbs type solutions, too, that were in the same category.

    Probably easier than I'm perceiving it to be right now, and maybe I'll need to get my feet wet there.

    Second is to have a column updated with a fixed value.

    There's a column that's not in my import file, and I'll want the same word inserted there each time.

    I don't care if it happens along with the import, or if I go back and have null values updated with the right string, either.

    SO, that about sums up what I'm trying to get done.

    Thanks for taking a look!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I use VBScript to open Access db and run a procedure. Windows Task Manager runs the script every Monday morning.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    cmcfarland is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jul 2014
    Location
    Houston, TX
    Posts
    24
    Sounds reasonable!
    Is this in the realm of things that I just need to comb Google for in order to light the way?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Example was given in your other thread https://www.accessforums.net/import-...ion-48324.html

    Create a VBScript file with text editor, I use Notepad. Save the file and change the file extension to vbs.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Automating import and export
    By trotta in forum Access
    Replies: 4
    Last Post: 02-19-2013, 06:51 AM
  2. Import specification help
    By tplee in forum Import/Export Data
    Replies: 8
    Last Post: 01-11-2012, 03:14 PM
  3. Access 2003: Import Specification
    By compooper in forum Import/Export Data
    Replies: 2
    Last Post: 08-23-2011, 01:58 PM
  4. Modifying an import specification
    By ronzul in forum Import/Export Data
    Replies: 3
    Last Post: 11-12-2009, 05:03 AM
  5. import text specification
    By brunoylupe in forum Import/Export Data
    Replies: 12
    Last Post: 08-09-2009, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums