Results 1 to 4 of 4
  1. #1
    Drew101 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    May 2017
    Posts
    22

    left Function on an import

    for some reason my Left([CCCode],2) is not working after my excel file has been imported into a table. How can I fix this

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    is not working
    More information please. We can't see what you are doing, you have to tell us.

  3. #3
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    More information please:
    - what it looks like before
    - what it looks like afterwards
    - data type of field
    - what does not working mean

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if your field is null (has no length) the right function will bomb out

    try something more like

    iif(len([ccode]) >2, left([ccode],2), null)

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

Similar Threads

  1. using the left function within a DLookup
    By crowegreg in forum Forms
    Replies: 1
    Last Post: 09-03-2013, 05:34 PM
  2. mid,left function
    By revned12 in forum Queries
    Replies: 2
    Last Post: 07-06-2012, 12:09 AM
  3. Left () function in a query
    By Dega in forum Queries
    Replies: 3
    Last Post: 05-24-2012, 03:46 PM
  4. Update with left function
    By yerromnitsuj in forum Access
    Replies: 3
    Last Post: 01-09-2012, 03:41 PM
  5. Left function with various lenth of digits
    By mohsin74 in forum Queries
    Replies: 0
    Last Post: 07-10-2007, 02:00 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