Afternoon all.
I'm running my own report on the database. This is basically a SQL query constructed depending upon options on the form. All works great and I have it saving to the person's desktop and opening in Excel automatically. I'm recreating the Querydef each time;
So creating this way:
And running this way:
My problem lies in the fact that some of the fields that the query fetches are Memo fields and thus contain over 256 characters. When the query dumps everything into the spreadsheet, all fields (or now cells) contain no more than 256 characters.
How do I make it output everything! Help!
P.S. Sql code ends up looking something like this:
I'm running my own report on the database. This is basically a SQL query constructed depending upon options on the form. All works great and I have it saving to the person's desktop and opening in Excel automatically. I'm recreating the Querydef each time;
So creating this way:
Code:
Set QD = Db.CreateQueryDef("QueryResults3", strSQL)
Code:
DoCmd.OutputTo acOutputQuery, "QueryResults3", acFormatXLS, strFileName, -1
My problem lies in the fact that some of the fields that the query fetches are Memo fields and thus contain over 256 characters. When the query dumps everything into the spreadsheet, all fields (or now cells) contain no more than 256 characters.
How do I make it output everything! Help!
P.S. Sql code ends up looking something like this:
Code:
[SIZE="1"]SELECT MainTable.ID, MainTable.Division, MainTable.Status, MainTable.TPI, MainTable.Pin, MainTable.Scheme, MainTable.CoIssue, MainTable.CoAction, MainTable.CoDate, MainTable.CoPerformance, MainTable.CoTM, MainTable.CoStatus, MainTable.TIssue, MainTable.TAction, MainTable.TDate, MainTable.TPerformance, MainTable.TTM, MainTable.TStatus, MainTable.EIssue, MainTable.EAction, MainTable.EDate, MainTable.EPerformance, MainTable.ETM, MainTable.EStatus, MainTable.StIssue, MainTable.StAction, MainTable.StDate, MainTable.StPerformance, MainTable.StTM, MainTable.StStatus, MainTable.GIssue, MainTable.GAction, MainTable.GDate, MainTable.GPerformance, MainTable.GTM, MainTable.GStatus, MainTable.SaIssue, MainTable.SaAction, MainTable.SaDate, MainTable.SaPerformance, MainTable.SaTM, MainTable.SaStatus, MainTable.OvrallStat, MainTable.MPComment, MainTable.MPPL
FROM MainTable
WHERE (((MainTable.Division) Like '*') AND ((MainTable.CoStatus) Like '*') AND ((MainTable.TStatus) Like '*') AND ((MainTable.EStatus) Like '*') AND ((MainTable.StStatus) Like '*') AND ((MainTable.GStatus) Like '*') AND ((MainTable.SaStatus) Like '*') AND ((MainTable.OvrallStat) Like '*'));[/SIZE]