Results 1 to 2 of 2
  1. #1
    TerraEarth is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    86

    How to handle missing values when cleaning data?

    So I have a few imports that I use to funnel data into Access. I have to actually clean the data first (I use the R language with the RStudio IDE to do this) before I import it into Access because of how messy it is. There are lots of empty fields in this data of different categories. Some of it are number values that represent currency, some are emails, names, phone numbers, etc. My question is, what is the best way to represent these values in my access tables?

    Nothing? Null? Empty String? 0?


    Ive been using a .csv format in order to export the cleaned data to Access, however this defaults all my data to the 'string' type. Is there a easy way to set up Access or the export so that the data types are somehow preserved in the transfer, or would I have to redefine all the types in my import tables before merging it with my main data?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    My question is, what is the best way to represent these values in my access tables?
    depends on the outcome required. If these are genuinely 'not known' then use null which is effectively what it means. Note you cannot use an empty string to populate a numeric field

    a csv file is a text file, so will return text - but '123.45' will import to a decimal field OK. however not sure how it would behave if you are exporting to access. If you were to import then you can specify the column type in the import manager. Or you can link to the file and use an append query

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

Similar Threads

  1. Help data cleaning
    By baronqueefington in forum Queries
    Replies: 1
    Last Post: 01-05-2016, 04:20 PM
  2. Replace Button not working, Data Cleaning, Help!
    By Wario84 in forum General Chat
    Replies: 5
    Last Post: 11-28-2014, 01:01 PM
  3. Importing Data with missing values
    By tcheck in forum Access
    Replies: 1
    Last Post: 02-04-2014, 03:28 PM
  4. Cleaning Data
    By Sck in forum Queries
    Replies: 1
    Last Post: 07-22-2010, 12:43 AM
  5. Cleaning Up Data - Need Help
    By NeedHelp in forum Access
    Replies: 2
    Last Post: 06-05-2010, 10:06 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