Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39

    Excel to Access

    Greetings,

    Currently, we use Excel 2010 to input detailed information about a given data element and use save as CSV to export to a third party application that we use for data definition purposes. This has been very time consuming, and we thought MS Access forms should simplify the data entry process. We can then create reports as CSV to export.
    I’ve attached two samples:

    1. The way data is inputted currently in excel (sample1)
    2. The end result in the third party application (sample2)



    Can you please give me some guidance the best way to accomplish this in Access?

    TIA,

    Regards
    Attached Files Attached Files

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    any chance you could give an example of what you want the actual output to be, the word document looks more like a data definition

    for example take the first row of your sample1 spreadsheet and show us what it's supposed to look like in it's end state.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    sorry, and your spreadsheet doesn't appear to have data either, any chance you could give a sample of what you your BEFORE actually looks like and what you want your AFTER to look like?

    doesn't have to be actual data, just something better than this because your spreadsheet is basically two row but multiple pieces of data per row per cell which I'm not quite following

  4. #4
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39
    rpeare, thanks for the reply. Sorry for the confusion.

    The third party application allows us to import a CSV template limited to 10 fields (A – J). Since we want to document additional information about a given data element (like workflow, example, status etc), we entered multiple pieces of date per cell. The actual excel is made up of close to 100 rows (one row for each data element) the attach two rows is just an example.

    So based on my sample1, the Access form would have:

    Field Name1
    Description:
    Workflow:
    Keep History:
    .
    .
    .
    Field Name 2
    Description:
    Workflow:
    Keep History:
    .
    .
    .
    And create a report (CSV) format when imported to the third party application looks like my sample2.
    Maybe I’m making it harder than it is.

    TIA,

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I understand your description, but your files only contain setup not something that would actually be in a file (which I'd need in order to mess around with it and offer a suggestion)

    For instance you have carriage returns within cells that would need to be parsed out and put into separate fields within an access table

    so... create a bogus file that has bogus data in it, then post it here.

    Please make it clear which pieces of information on the spreadsheet you want to extract and put into separate fields (maybe by bolding them on the excel file or some other such mechanism) so it's clear to me as an outside viewer what you really want to extract.

  6. #6
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39
    rpeare,

    Thank you for your help and hope the attaced screenshot (3 pages) further explains and answers your questions.


    please let me know if this is what you are asking.


    Regards,
    Attached Files Attached Files

  7. #7
    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 think rpeare is asking for a spreadsheet with data, not descriptions about the data.

    Maybe this will help you get your db design together http://www.rogersaccesslibrary.com/
    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.

  8. #8
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Yeah.. I'm not getting through.

    I need an example of your spreadsheet with ACTUAL sample data (AS IT IS NOW), not descriptions of the data. You also keep talking about a CSV but you give no example of what you want your CSV to show (order of fields etc).

    Are we assume for the sake of argument that the fields shown on your 'blank' form and your 'populated' form (pages 1 and 2) contain everything you want to saved in your Access database? Are these items then also sent to your csv, and it's all filled out by the user on the Access side?

    Have you got a specific format for your CSV because if all we're talking about is exporting a specific record or records from a single table this problem is quite easy to solve but your page 3 is throwing me because I have no idea what it's supposed to indicate, is it supposed to show the order of the fields when you export them to your csv? because it's definitely not a csv format but you say it's what you 'want it to look like' but if that's coming out of your 3rd party software what has it got to do with you Access side problem?

  9. #9
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39
    June7
    Thanks for the link I found it to be a good resource.

    rpeare,

    Thank you, as I was trying to formulate my reply, I saw your post. Your second paragraph sums it up and it’s what I try to accomplish.

    Are we assume for the sake of argument that the fields shown on your 'blank' form and your 'populated' form (pages 1 and 2) contain everything you want to saved in your Access database? Yes
    Are these items then also sent to your csv, and it's all filled out by the user on the Access side? Yes

    I’ll then worry about the third part later.

    Regards,

  10. #10
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    arg.... one more try!

    SO if you are currently exporting roughly 100 rows of data from an excel spreadsheet to a .csv how are you differentiating fields within the CSV?

    for instance let's say you have 20 fields with the values 1 through 20 and you are putting 2 values in each 'field' of the .csv, are items space delimited within each comma separated value like:

    1 2,3 4,5 6,7 8,9 10,11 12,13 14,15 16,17 18,19 20

    or do they have some other formatting within each comma separated value? None of the stuff you've loaded explains the format of the csv and how you're 'splitting' fields within each discrete comma separated value.

  11. #11
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39
    Good questions and I think we are in the right direction.

    The formatting and/or the splitting was done in Excel (my original sample attachment. As you noted, I entered multiple rows of data in one cell. For instance, I used Alt + enter multiple time to get two spaces etc. I’ll the save it as CSV to export. To answer your question, I do not do anything within the CSV.

    I hope this helps,

    TIA,

    Regards,

  12. #12
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    a comma separated file (csv) with a carriage return to mark individual fields within a larger concantenated field would look something like

    1
    2,
    3
    4,
    5
    6,
    7
    8,
    etc.

    is that how your current export looks? (again this is why I wanted an example of what your CURRENT end product looks like but still don't know)

    How about answering this

    let's assume for the sake of argument that YOUR DATASET is exactly what I've said, 20 fields and you want to put 2 fields per value in your CSV

    show me what your CSV is supposed to look like the end product. If you can't supply the former, perhaps you can supply this otherwise I'm at a loss because your explanation isn't jiving with me.

  13. #13
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39
    Rpeare,

    Attached is my CSV that you asked. As you can see my database is limited to 10 fields (below).

    Field Name
    Detail Info.
    Technical Info.
    Public
    Source
    Synonyms
    Department
    Data System
    Time Context
    Tag List

    I hope this helps.

    Regards,
    Attached Files Attached Files

  14. #14
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    So you are only exporting 10 fields of a record that can be more than 10 data points, that's completely different than what you were saying

    If you only want to export a portion of the data points you just create a query that has the 10 points you want then export the query instead of the table.

    If you are saying, on the other hand, that let's say, again, that you have 20 fields with the contents 1 through 20 and you want to export them to a csv where the first row would be items 1 through 10 and the second row would be items 11 through 20 that's a different thing entirely because you do not have multiple fields in a single cell in your example csv.

  15. #15
    ocm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    39
    Correct, I’m only exporting 10 fields.

    TIA,

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Import access query data into excel file, using excel vba
    By exceljockey in forum Import/Export Data
    Replies: 3
    Last Post: 11-15-2013, 02:36 PM
  2. Replies: 7
    Last Post: 04-25-2013, 03:47 PM
  3. Replies: 10
    Last Post: 12-28-2012, 02:06 PM
  4. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  5. Replies: 1
    Last Post: 08-31-2009, 10:24 AM

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