I'll start out with I'm not real good at building sql queries and the fact that MS Access truncates data from memo fields doesn't help.
I'm building a test generator and some of the questions are greater than 255 (500 words tops though) so they are in a memo field.
I'm trying to randomly grab a number of questions and using this sql to get them.
SELECT TOP 50 * INTO HoldingPen FROM TotalTestBank WHERE Chapter in ( " & WhichChaps & ") and randomizer() = 0 ORDER BY rnd(isnull(ID) * 0 +1);"
WhichChaps is gotten from user input so for example it can be 1,2,5,7 or 1-3
This works - but I can't figure out how to get around the truncating issue. The memo field is called memoQ
Any ideas would be greatly appreciated
I'm building a test generator and some of the questions are greater than 255 (500 words tops though) so they are in a memo field.
I'm trying to randomly grab a number of questions and using this sql to get them.
SELECT TOP 50 * INTO HoldingPen FROM TotalTestBank WHERE Chapter in ( " & WhichChaps & ") and randomizer() = 0 ORDER BY rnd(isnull(ID) * 0 +1);"
WhichChaps is gotten from user input so for example it can be 1,2,5,7 or 1-3
This works - but I can't figure out how to get around the truncating issue. The memo field is called memoQ
Any ideas would be greatly appreciated
Last edited: