Results 1 to 3 of 3
  1. #1
    Joserra is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2020
    Posts
    1

    Error pasting records from Excel

    Hi


    I am in trouble pasting new records on an access table from Microsoft Excel rows.


    Access table has four fields : Name, Date1, Date2 and Turn (text field)
    Same format is used for Excel cells.




    When first excel-row's cell-Turn has a numeric value an error is triggered and all rows containing an alfanumeric value in turn-cell area are omitted.
    If first excel-row's cell-Turn has an alfanumeric value, pasting works fine.




    Why ?


    Thanks in advance.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    it doesnt always work.
    you could try Transferspreadsheet.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Excel does not make it easy for importing data to other applications.

    excel does not have datatypes so access (or any app that uses datatypes) makes a judgement call based on the first few rows to decide how it is going to treat the data - long/double/text/date.

    Recommend you use transferspreadsheet or other vba process so you can make sure you can control the data you are importing

    Alternatively

    sort your data so there is a blank (which will be treated as text) or alphanumeric value at the top
    or put a single quote before the first value so it is viewed as text
    or save the file as a .csv

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

Similar Threads

  1. Pasting same term in multiple records
    By PATRICKPBME in forum Access
    Replies: 3
    Last Post: 06-06-2017, 12:04 PM
  2. Replies: 3
    Last Post: 09-01-2015, 12:58 PM
  3. Replies: 5
    Last Post: 03-30-2014, 04:12 PM
  4. Pasting to Excel For VLOOKUP
    By JeffGeorge in forum Access
    Replies: 2
    Last Post: 03-27-2014, 10:54 AM
  5. Error Copying & Pasting from Excel
    By kristyspdx in forum Access
    Replies: 1
    Last Post: 02-03-2012, 08:42 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