Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy more than 255 characters

Status
Not open for further replies.

Shannon88

Technical User
Mar 4, 2003
17
US
I have built a command button that copies 7 different fields from a form into a table. It does not work all the time because I am sometimes over the 255 characters.

I am using DoCmd.RunSQL "INSERT INTO mytable (7fields) VALUES (7fields);"

When using the DoCmc.RunSQL it only supports 255 characters. I have spend 2 hours searching and still did not find anything that will help.

Any suggestions would be much appreciated.

Thanks,

Shannon
 
You should make the Field that is causing the out of bounds into a "Memo" field.
 
The one field is a memo field and I thought that was my problem but it isn't. When they say 255 characters are they talking about the data that is being copied or characters in the command line in my SQL statement?

Thanks!
 
I figured it out. I created a query off of the form into a table. It might not be the easiest way, but at least it works.

Thanks,

Shannon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top