QueenKirsty
Registered User.
- Local time
- Today, 06:16
- Joined
- Mar 13, 2009
- Messages
- 31
I have a string that represents an SQL statement that I want to run using DoCmd.RunSQL in VBA.
I have put the string into a variable SQL3 and then called
DoCmd.RunSQL SQL3
The problem is SQL3 is only picking up the first 250 characters of the string. I tried splitting up the string into SQL3a and SQL3b (each with less than 250 characters) and they look fine but when I concatenate the two strings I still only get the first 250 characters.
I do not get any error messages on the string concatenation or the original string but obviously the string only contains half an SQL command and so the DoCmd.RunSQL will not work.
Any ideas?
I have put the string into a variable SQL3 and then called
DoCmd.RunSQL SQL3
The problem is SQL3 is only picking up the first 250 characters of the string. I tried splitting up the string into SQL3a and SQL3b (each with less than 250 characters) and they look fine but when I concatenate the two strings I still only get the first 250 characters.
I do not get any error messages on the string concatenation or the original string but obviously the string only contains half an SQL command and so the DoCmd.RunSQL will not work.
Any ideas?