You are here:

Using MS Access/Access (SQL) string too long

Advertisement


Question
Dear Scottgem,

I am looking for your help on my Access VBA programming on the string too long case.

In fact, I am going to write some complicated SQL. But the string is too long. From my obversation, it may be longer than 256 characters. So, the strings being truncated at the middle.

As a result, may you let me know if there is any way to make the string longer than 256 characters? Is there any such as the "Long String"? May you show me the example?

Looking for your instruction. Your guidance is appreciated.

Thank you for your help.

With all good wishes,

Yours sincerely,
George Chan
In Hong Kong

Answer
Need more details. Are you trying to generate a SQL statement in a VBA code module? If so, what is the exact message you are getting and what line of code is throwing the message.

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.