Results 1 to 2 of 2
  1. #1
    rchris494 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    1

    database creation

    i am very new to access.

    i would like to create a database in access when i import from a .CSV file it will only import the data i want. if the data does not have a field created; create one and place the data in that field. so i would need to do a check when importing this data.

    currently we hand key all this information in and it is very time consuming.

    example .csv

    "File Name","","C:\Univ\Reports\1022=231022=FMADACTags-091022_Log_231405.csv"
    "Source File","","1022=231022=FMADACTags"
    "Run Date","","10/22/2009"
    "Run Time","","11:14:05 PM"
    "Computer Name","","DCB-LRAR-03"
    "User Name","","dc003"
    "Splitout Sequence","","000-516-247"
    ""
    "Output File","Customer Label Name","Label Name","Label Count","Page Count"


    "1022=231022=FMADAC.FM-Accolade10-ACC.14511_ADACT","ACC","FM-Accolade10-ACC",510,56
    "1022=231022=FMADAC.FM-Adtag10-ADT.14512_ADACT","AD10","FM-Adtag10-ADT",28,10

    but the next .csv will have the following

    "File Name","","C:\Univ\Reports\1022=231022=FMADACTags-091022_Log_231405.csv"
    "Source File","","1022=231022=FMADACTags"
    "Run Date","","10/22/2009"
    "Run Time","","11:14:05 PM"
    "Computer Name","","DCB-LRAR-03"
    "User Name","","dc003"
    "Splitout Sequence","","000-516-247"
    ""
    "Output File","Customer Label Name","Label Name","Label Count","Page Count"
    "1022=231022=FMADAC.FM-Accolade10-ACC.14511_ADACT","ACC","FM-Accolade10-ACC",510,56
    "1022=231022=FMADAC.FM-Adtag10-ADT.14512_ADACT","AD10","FM-Adtag10-ADT",28,10
    "1022=231022=FMADAC.FM-Adtag20-ADD.14513_ADACT","AD20","FM-Adtag20-ADT",28,10

    i would like to have 1022=231022=FMADACTags as the first field, 2nd to field lable name (example: ad10) but if there is not this field created create it and place the Page Count under that field. I also want this to always append to an exsisting database until changed

    i would like to make this as simple as running a macro or .bat file.

    i hope this all makes some sense. if not i can try to explain better.

    can someone help me or point me in a direct to help get this started??

  2. #2
    dsmacs is offline Advanced Beginner
    Windows XP Access 2010 (version 14.0)
    Join Date
    Oct 2009
    Location
    Perth Western Australia
    Posts
    52

    importing CSV

    Hi Chris,

    Can you attach a small sample csv file with differt field lengths or email me?

    d [dot] mcdonald @ ozemail [dot] com [dot] au

    I'll do up a sample for you.

    Regards
    Darren

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

Similar Threads

  1. Recommendation On Creation of this Table
    By rochy81 in forum Database Design
    Replies: 21
    Last Post: 05-18-2009, 11:31 AM
  2. Replies: 5
    Last Post: 03-29-2009, 07:20 AM
  3. help with database creation
    By terrep263 in forum Database Design
    Replies: 1
    Last Post: 08-30-2006, 07:59 AM
  4. Will Pay $$$ for help w/ database creation!
    By eyesbryte in forum Access
    Replies: 1
    Last Post: 07-03-2006, 01:56 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