ChristineMD
Board Regular
- Joined
- Jul 29, 2008
- Messages
- 53
Very weird issue
I have a procedure that concatenates a bunch of fields together separated by html LI tags - the procedure itself works beautifully (someone shared some code with me here in 2008 that I modified for this purpose.)
I'm getting a very weird truncation issue though, with long values.
I have a MYSQL table tblTextCopy2015 with a bunch of individual columns for bullet data
I can use an ACCESS UPDATE query and use the procedure to populate a field with the concatenated bullet fields, and the results are fine, i.e. not truncated. This works:
but this does not (attributes is an Access table and the destination field is a memo field) This is an old 2003 database (mdb) but I use access 2010 now. (don't want to convert it!)
But this DOES work?
The attribute table is a setup table for an xml conversion where I have numerous other attribute name/values in addition to the bullets that feed into a node that's just attribute name and attribute value. Any insight would be greatly appreciated!
I have a procedure that concatenates a bunch of fields together separated by html LI tags - the procedure itself works beautifully (someone shared some code with me here in 2008 that I modified for this purpose.)
I'm getting a very weird truncation issue though, with long values.
I have a MYSQL table tblTextCopy2015 with a bunch of individual columns for bullet data
I can use an ACCESS UPDATE query and use the procedure to populate a field with the concatenated bullet fields, and the results are fine, i.e. not truncated. This works:
Code:
UPDATE tbltextcopy2015 SET tbltextcopy2015.CONCBullets = StringTogether2([bullet1],[bullet2],[bullet3],[bullet4],[bullet5],[bullet6],[bullet7],[bullet8],[bullet9],[bullet10],[bullet11],[bullet12],[bullet13],[bullet14],[bullet15],[bullet16],[bullet17],[bullet18],[bullet19],[bullet20]);
but this does not (attributes is an Access table and the destination field is a memo field) This is an old 2003 database (mdb) but I use access 2010 now. (don't want to convert it!)
Code:
INSERT INTO attributes ( item, attributename, attribute )
SELECT MasterPROC.item, "Bullets" AS attributename, Last(StringTogether2([bullet1],[bullet2],[bullet3],[bullet4],[bullet5],[bullet6],[bullet7],[bullet8],[bullet9],[bullet10],[bullet11],[bullet12],[bullet13],[bullet14],[bullet15],[bullet16],[bullet17],[bullet18],[bullet19],[bullet20])) AS attribute
FROM MasterPROC INNER JOIN tbltextcopy2015 ON MasterPROC.item = tbltextcopy2015.Style
GROUP BY MasterPROC.item, "Bullets";
But this DOES work?
Code:
INSERT INTO attributes ( item, attributename, attribute )
SELECT MasterPROC.item, "Bullets" AS attributename, Last(tbltextcopy2015.concbullets) AS attribute
FROM MasterPROC INNER JOIN tbltextcopy2015 ON MasterPROC.item = tbltextcopy2015.Style
GROUP BY MasterPROC.item, "Bullets";
The attribute table is a setup table for an xml conversion where I have numerous other attribute name/values in addition to the bullets that feed into a node that's just attribute name and attribute value. Any insight would be greatly appreciated!