Results 1 to 2 of 2
  1. #1
    BSUMLAUF is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2016
    Posts
    1

    Using SQL Insert to insert a value that could be thousands of chars long. getting Err 3271.


    I am trying to use an SQL Insert in my code with a parameter clause to pass data to the insert. One data element could potentially be several thousands of characters long. Using string as the value type. this works if the data element is not to long. What other data type can I use to handle several thousand characters?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I think you can store tens of thousands of characters in an SQL statement for a Query Object. I think the limit in a VBA string is like 255 or something. So the VBA thing does not have anything to do with the memory size of a variable that is type string.

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

Similar Threads

  1. Insert more than 255 chars in a Memo field
    By mauro.blandizio in forum Queries
    Replies: 3
    Last Post: 06-28-2016, 09:06 AM
  2. Replies: 3
    Last Post: 05-27-2015, 01:04 PM
  3. INSERT query: insert new data only
    By drh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 05:31 PM
  4. Insert into where
    By Richie27 in forum Queries
    Replies: 31
    Last Post: 05-18-2012, 02:11 AM
  5. help with insert
    By jamie in forum Access
    Replies: 1
    Last Post: 11-16-2009, 06:02 AM

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