Re: Strange Overflow Error!
From: Griff (Howling_at_The.Moon)
Date: 01/04/05
- Next message: Bob Barrows [MVP]: "Re: SQL Statement and Grouping for VB/Excel Project"
- Previous message: Griff: "MDAC question"
- In reply to: Paul Turner: "Strange Overflow Error!"
- Next in thread: Paul Turner: "Re: Strange Overflow Error!"
- Reply: Paul Turner: "Re: Strange Overflow Error!"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 Jan 2005 12:36:46 -0000
Strange indeed...it sounds to me like you've covered all the obvious bases.
Exploring a bit further the NULL problems, one bit of defensive coding you
could try would be to concatenate it with an empty string on the left hand
side rather than the right (either "" or I think vbNullString may work)
Desc = Replace(Left("" & rsGoods!goodsDescription, 255), vbCrLf, " ") '
Two extremely minor things....
If it's a string, Left$() is I believe slightly faster than Left()
I read somewhere that vbNewLine was preferred to vbCrLf.
I'm not that familiar with TEXT fields; I presume that it's nothing to do
with double-width characters (e.g. Unicode NVARCHAR vs VARCHAR)?
Good luck
Griff
- Next message: Bob Barrows [MVP]: "Re: SQL Statement and Grouping for VB/Excel Project"
- Previous message: Griff: "MDAC question"
- In reply to: Paul Turner: "Strange Overflow Error!"
- Next in thread: Paul Turner: "Re: Strange Overflow Error!"
- Reply: Paul Turner: "Re: Strange Overflow Error!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|