G
Guest
I am building up a complex SQL statement like this...
Dim sql As String
sql = "SELECT Broker, SUM(cntMTD) AS cntMTD, SUM(cntYTD) as cntYTD,"
sql = sql + "SUM(USDrealMTD) AS USDrealMTD,,"
sql = sql + "SUM(cadMTD) AS cadMTD, SUM(usdMTD) AS usdMTD"
[etc]
Me.RecordSource = sql
I use this technique all through my app, but this one doesn't work and when
I look at it in the debugger, it's truncated at about the 255 character point.
Is there some easy way to make this longer so it won't get truncated? Any
why don't I get an error when I'm trying to ADD to the string, instead of it
just invisibly failing?
Maury
Dim sql As String
sql = "SELECT Broker, SUM(cntMTD) AS cntMTD, SUM(cntYTD) as cntYTD,"
sql = sql + "SUM(USDrealMTD) AS USDrealMTD,,"
sql = sql + "SUM(cadMTD) AS cadMTD, SUM(usdMTD) AS usdMTD"
[etc]
Me.RecordSource = sql
I use this technique all through my app, but this one doesn't work and when
I look at it in the debugger, it's truncated at about the 255 character point.
Is there some easy way to make this longer so it won't get truncated? Any
why don't I get an error when I'm trying to ADD to the string, instead of it
just invisibly failing?
Maury