basically i'm having an issue where I can only get 256 characters to export into excel with the code below. I'm under the impression that ADO will fix this. How can I switch it?
Code:
Dim dbs As DAO.Database
Dim reportarray As Variant
Dim rstGetExportData As Recordset
Dim rs As DAO.Recordset
Dim objXL As Object
Dim objCreateWkb As Object
Dim objActiveWkb As Object
Dim Qyear As String
Dim Q As Long, Lastrow As Long, StartRow As Long, x As Long
Dim strSQL As String
Dim Yearr As String
Set dbs = CurrentDb
Set objXL = CreateObject("Excel.Application")
'edit this if template is moved.
Set objCreateWkb = objXL.Workbooks.Open("L:\production support Template.xlt") 'objXL.Workbooks.Add
Set objActiveWkb = objXL.Application.ActiveWorkBook
objXL.Visible = False
strSQL = "SELECT DateReported, Issue, PersonReported, PteamMember,Cause, TimeInHrs, WorkType, Category," & _
" NewRecur,Resolution,Tasks, ICC FROM ProductionSupport WHERE WorkType <> 'Regular' AND Month(DateReported) =" & Qyear & " AND Year(DateReported)=" & Yearr & " ORDER BY DateReported ASC"
Set rstGetExportData = dbs.OpenRecordset(strSQL)
objActiveWkb.sheets(MonthName(reportarray(Q))).Select
objActiveWkb.ActiveSheet.Cells(2, 1).CopyFromRecordset rstGetExportData