Results 1 to 5 of 5
  1. #1
    stacerx2001 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Posts
    2

    Unwanted Memo Field Truncation

    Hello,

    I've built a query as seen below to gather data on what my employees have worked on and when. The query runs perfectly except for my memo field (which are basically employee notes) is being truncated. Ugh! I've read through hundreds of forums and suggestions to no avail. I changed UNION to UNION ALL, I've put my NOTES last on my list as well as using FIRST. I also removed it from GROUP BY.

    Any suggestions? Thanks! Stacey

    SELECT SUM ([ELAPSED TIME]), NAME, [WORK ORDER], [START DATE], [START TIME], [LINE NUMBER], FIRST(NOTES) as FIRSTOFNOTES
    FROM Employee1
    WHERE [WORK ORDER] Like WO And [START DATE] > START And [START DATE] < END
    GROUP BY [NAME], [WORK ORDER], [START DATE], [START TIME], [LINE NUMBER]
    UNION ALL
    SELECT SUM ([ELAPSED TIME]), NAME, [WORK ORDER], [START DATE], [START TIME], [LINE NUMBER], FIRST(NOTES) as FIRSTOFNOTES
    FROM Employee2
    WHERE [WORK ORDER] Like WO And [START DATE] > START And [START DATE] < END
    GROUP BY [NAME], [WORK ORDER], [START DATE], [START TIME], [LINE NUMBER]
    UNION ALL SELECT SUM ([ELAPSED TIME]), NAME, [WORK ORDER], [START DATE], [START TIME], [LINE NUMBER], FIRST(NOTES) as FIRSTOFNOTES
    FROM Employee3
    WHERE [WORK ORDER] Like WO And [START DATE] > START And [START DATE] < END
    GROUP BY [NAME], [PROJECT], [WORK ORDER], [START DATE], [START TIME], [LINE NUMBER];

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That's the nature of memo field. I avoid them as much as possible.

    Why are there separate tables for employees?

    LIKE operator without wildcard is meaningless - might as well just use = sign. And the text parameter should be in quote marks

    [Work Order] LIKE "WO*"
    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
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you cant query on memo. And it sometimes truncates upon export from a query, tho it WONT truncate if you export from a table. (bizzare)

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  5. #5
    stacerx2001 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Posts
    2
    Thanks for your feedback! I think I'll change my strategy and like you said, just avoid the memo field altogether...for now at least.

    I'm new to creating databases so I may have messed up on properly separating data groups. I have a timesheet program that creates a database file for each employee of which I simply import into the employee's table. Each employee table is basically their timesheet info, i.e., their name, date of clock in, time of clock in and out, their notes, and what project it's linked to and subprojects. From these tables I can create all variations of data reports.

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

Similar Threads

  1. Replies: 9
    Last Post: 07-21-2014, 11:57 AM
  2. calc field producing unwanted spaces amidst the final string
    By kattatonic1 in forum Database Design
    Replies: 7
    Last Post: 07-12-2013, 10:32 AM
  3. Excel Import field truncation problem (to Access Memo field)
    By jhrBanker in forum Import/Export Data
    Replies: 6
    Last Post: 07-27-2012, 08:52 AM
  4. Field Truncation
    By Jesse_Munos in forum Queries
    Replies: 1
    Last Post: 04-20-2012, 03:09 AM
  5. Piechart legend zero truncation
    By baba in forum Access
    Replies: 8
    Last Post: 11-29-2011, 09:49 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