Results 1 to 2 of 2
  1. #1
    Jesse_Munos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    7

    Field Truncation

    So I am building a query that pulls data from 7 tables. One field in this query is giving me issues and I think the easiest way to resolve it is to change the way the table stores one of its fields.



    Essentially I have a table that is organized by computer names in the following format style

    w7-x1d45jc.companyname.local

    This data refuses to aggregate with all of the other tables because none of those tables have the .compayname.local as part of their computer name fields.

    How do I go about truncating this data or querying on everything before the period?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    What do you mean by 'aggregate with all of the other tables'? Exactly what are you trying to do?

    Use string manipulation functions in expression to create a field in query that extracts the string part you need.

    Left(fieldname, InStr(fieldname,".")-1)
    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.

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

Similar Threads

  1. Replies: 8
    Last Post: 04-13-2012, 12:25 PM
  2. Replies: 16
    Last Post: 04-11-2012, 10:56 AM
  3. Replies: 1
    Last Post: 03-03-2012, 10:17 PM
  4. Replies: 1
    Last Post: 02-20-2012, 01:59 PM
  5. Piechart legend zero truncation
    By baba in forum Access
    Replies: 8
    Last Post: 11-29-2011, 09:49 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