Solved

Memo field truncated by insert query

Posted on 2008-10-20
3
373 Views
Last Modified: 2008-11-16
I have a memo field that when data is inserted via a query seems to be getting truncated, whenever the text amount gets above 500 characters. I have developed a form with a submit button when the user clicks the submit button the following command call is executed.

DoCmd.OpenQuery ("Add_New_Referral")

The Add_New_Referral query has the following syntax

INSERT INTO referrals
VALUES (Forms!Add_New_Referral!ReferralNum, Forms!Add_New_Referral!StuNum, Forms!Add_New_Referral!TeachCode, Forms!Add_New_Referral!Subject, Format(Forms!Add_New_Referral!Date,"dd,mm,yyyy"), Forms!Add_New_Referral!Description, Forms!Add_New_Referral!Apology, Forms!Add_New_Referral!Letter, Forms!Add_New_Referral!Detention, Forms!Add_New_Referral!YC, Forms!Add_New_Referral!Telephoned);

When the data is truncated the last few characters are displayed as unprintable characters.

There is a little bit about this on the web but none of the solutions seemed to work for me, does anyone have any suggestions

Thank You
0
Comment
Question by:elschott
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 22762376
0
 
LVL 44

Expert Comment

by:GRayL
ID: 22762630
After - INSERT INTO referrals - you need a list of fields from Referrrals wrapped in parentheses.  Where did you get that format??
0
 

Author Comment

by:elschott
ID: 22762857
Thanks DatabaseMX I had come accross the allenbrowne site in my research but as far as I can tell it doesn't apply to my query as I am not aggregating, I am not applying uniqueness via distinct etc, I have a format on the date field but I have tried removing this and it still does not work and am not using a union only working on one table or concatenation, so based on that I would assume my query should be ok?

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question