Results 1 to 3 of 3
  1. #1
    nigelbloomy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    51

    Won't paste text if first 5 records are numbers

    I have a list of part numbers in Excel. The user needs to get them into Access so it can run the queries and get the data about all of the part numbers. The part number field in my form is formatted as text because the part numbers are alphanumeric. Right now the user copies the list of part numbers out of Excel and pastes them into my Access form. The problem is that if the first 5 part numbers are only numbers, then Access assumes the whole field can only be for numbers and all of the alphanumeric part numbers are pasted in as blanks. How can I stop this from happening? It works fine when one of the first 5 part numbers has a letter in it.

  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
    53,641
    Try defining the cells in Excel as Text instead of General format - works for me.
    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
    nigelbloomy is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    51
    Works perfectly now. That was an easy fix. Thank you so much.

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

Similar Threads

  1. VBA - copy memo, paste as text in email app
    By Goodge12 in forum Programming
    Replies: 5
    Last Post: 09-10-2014, 12:12 PM
  2. Replies: 1
    Last Post: 05-01-2014, 11:33 AM
  3. Any way to copy paste records from
    By super12 in forum Access
    Replies: 5
    Last Post: 03-05-2013, 11:16 PM
  4. COPY records from SUBFORM and PASTE to EXCEL?
    By taimysho0 in forum Programming
    Replies: 9
    Last Post: 11-28-2011, 02:45 PM
  5. Paste into multiple records
    By PIHA520 in forum Access
    Replies: 1
    Last Post: 05-29-2011, 06:33 PM

Tags for this Thread

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