473,394 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Exporting Access Query to Excel

I am trying to send the results of a query that runs when I click a button on my form that is based on a parameter query. The code runs without any errors but nothing is exported into my excel spreadsheet and I can't figure out why does anyone see where I went wrong in my code. I am currently using DAO Recordset. Here is what my code looks like:
[code]

Private Sub btnJE_Click() 'Exports qryJE results into excel

On Error GoTo Err_btnJE_Click

MsgBox ExportQuery, vbInformation, "Export Finished"

Exit_btnJE_Click:
Exit Sub

Err_btnJE_Click:
MsgBox Err.Description, vbCritical, "Error"
Resume Exit_btnJE_Click

End Sub
Public Function ExportQuery() As String
On Error GoTo err_Handler

'Excel object variables
Dim appExcel As Excel.Application
Dim wbk As Excel.Workbook
Dim wks As Excel.Worksheet

Dim sTemplate As String
Dim sTempFile As String
Dim sOutput As String

Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim sSQL As String
Dim IRecords As Long
Dim iRow As Integer
Dim iCol As Integer
Dim iFld As Integer

Const cTabOne As Byte = 1
Const cTabTwo As Byte = 2
Const cStartRow As Byte = 3
Const cStartColumn As Byte = 1

DoCmd.Hourglass True

'Set to break on all errors
Application.SetOption "Error Trapping", 0

'Start with clean file built from template file
sTemplate = CurrentProject.Path & "\JournalEntryTest.xls"
sOutput = CurrentProject.Path & "\JournalEntryFormTest.xls"
If Dir(sOutput) <> "" Then Kill sOutput
FileCopy sTemplate, sOutput

'Create the Excel Application, Workbook and Worksheet and Database object
Set appExcel = New Excel.Application
appExcel.Visible = True
Set wbk = appExcel.Workbooks.Open(sOutput)

sSQL = "SELECT * FROM tblAllPerPayPeriodEarnings " & vbCrLf & "WHERE PG = '" & Forms("frmJE").Controls("cboADPCompany").Value & "' AND ('LOCATION#') = '" & Forms("frmJE").Controls("cboLocationNo").Value & "' AND CHECK_DT Between #" & Forms("frmJE").Controls("txtFrom").Value & "# AND #" & Forms("frmJE").Controls("txtTo").Value & "#" & ";"


Set dbs = CurrentDb
Set rst = dbs.OpenRecordset(sSQL, dbOpenSnapshot)
If Not rst.BOF Then
rst.MoveFirst
'For this template, the data must be placed in the appropriate cells of the spreadsheet
Do While Not rst.EOF
With wbk
.Sheets("JournalEntry").Range("G3") = rst.Fields("Branch Number")
.Sheets("JournalEntry").Range("K15:K100") = rst.Fields("Account")
.Sheets("JournalEntry").Range("L15:L100") = rst.Fields("Sub Account")
.Sheets("JournalEntry").Range("O15:O100") = rst.Fields("SumOfGROSS")
.Sheets("JournalEntry").Range("Q15:Q100") = rst.Fields("Account Description")
.Sheets("JournalEntry").Range("G3,K15:K100,L15:L10 0,O15:O100,Q15:Q100").Columns.AutoFit
.SaveAs CurrentProject.Path & "\" & rst.Fields("Branch Number") & ".xls"

End With
rst.MoveNext

Loop
rst.Close

ExportQuery = "Total of " & IRecords & " rows processed."

exit_Here:
'Cleanup all objects (resume next on errors)
Set wbk = Nothing
appExcel.Quit
Set appExcel = Nothing
Set rst = Nothing
Set dbs = Nothing
DoCmd.Hourglass False
Exit Function

err_Handler:
ExportQuery = Err.Description
Resume exit_Here
End If
End Function

[\Code]
Oct 30 '07 #1
12 4166
FishVal
2,653 Expert 2GB
Hi, there.

The first question you should ask yourself having encountered such a kind of problem is - "Does my query return records?"
  • Toggle breakpoint on the next line after
    Expand|Select|Wrap|Line Numbers
    1. sSQL="SELECT .......
  • Get content of sSQL variable, e.g.
    Expand|Select|Wrap|Line Numbers
    1. ? sSQL 
    in immediate VBA window
  • Copypaste it to query builder and run.

Check that first and will proceed with debugging of your code.
Oct 30 '07 #2
1. Okay I figured out why nothing was being inputted to the spreadsheet. All the records kept overwriting each other. But I have a new problem after making sure that the query returned values. Only one value is returned to the spreadsheet not all the results produced by the query. Also using the code below I get the error message: {Run-
time error '1004': Application-defined or object-defined error.} This same
message appears when I use the following pieces of code
Expand|Select|Wrap|Line Numbers
  1. .Cells(j,11).Value =
  2. rst.Fields("GL_Acct").Value
  3. .Cell(j,12).Value = rst.Fields("GL_Subacct").Value
  4. .Cell(j,12).Value = rst.Fields("GROSS").Value
  5. .Cell(j,12).Value = rst.Fields("AccountDescription").Value
2. Using this code I get a single record from the query to write to the spreadsheet. Also I receive this error message
"Run-time error '3265': Item not found in this collection." for the
Expand|Select|Wrap|Line Numbers
  1. .Range("O15").Value = rst.Fields("GROSS").Value
I have tried to change the name but nothing works. Any help would be greatly appreciated. I'm not sure what exactly is causing this error I have stepped through the code and everything I'm not sure if I have it coded wrong.

Expand|Select|Wrap|Line Numbers
  1. sSQL = "SELECT  tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct,
  2. tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept, tblGLAllCodes.
  3. AccountDescription , tblAllADPCoCodes.BranchNumber, Sum
  4. (tblAllPerPayPeriodEarnings.GROSS) FROM tblAllADPCoCodes, tblGLAllCodes INNER
  5. JOIN tblAllPerPayPeriodEarnings ON tblGLAllCodes.Dept =
  6. tblAllPerPayPeriodEarnings.GLDEPT GROUP BY tblAllPerPayPeriodEarnings.GLDEPT,
  7. tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept,
  8. tblGLAllCodes.AccountDescription, tblAllPerPayPeriodEarnings.PG,
  9. tblAllPerPayPeriodEarnings.[LOCATION#], tblAllADPCoCodes.BranchNumber,
  10. tblAllPerPayPeriodEarnings.CHECK_DT HAVING PG = '" & Forms("frmJE").Controls
  11. ("cboADPCompany").Value & "' AND [LOCATION#] = '" & Forms("frmJE").Controls
  12. ("cboLocationNo").Value & "' AND BranchNumber = " & Forms("frmJE").Controls
  13. ("txtBranchNo").Value & " AND CHECK_DT Between #" & Forms("frmJE").Controls
  14. ("txtFrom").Value & "# AND #" & Forms("frmJE").Controls("txtTo").Value & "#"
  15. & ";"
  16.  
  17. Do Until rst.EOF
  18.    With wbk.Sheets("JournalEntry")
  19.        .Range("G3") = rst.Fields("BranchNumber").Value
  20.        .Range("K15").Value = rst.Fields("GL_Acct").Value
  21.        .Range("L15").Value = rst.Fields("GL_Subacct").Value
  22.        .Range("O15").Value = rst.Fields("GROSS").Value   'not finding value
  23.        .Range("Q15").Value = rst.Fields("AccountDescription").Value
  24.   End With
  25. J = J + 1
  26. rst.MoveNext
  27. Loop
Thanks in advance!
Nov 2 '07 #3
FishVal
2,653 Expert 2GB
Hi, there.

Though you may expect the name of the field
.... Sum(tblAllPerPayPeriodEarnings.GROSS)...
will be [GROSS], it isn't so. Access will give it default name like [Expr1].
To explicitely name query field use "AS", e.g.
Expand|Select|Wrap|Line Numbers
  1. SELECT ..... Sum(tblAllPerPayPeriodEarnings.GROSS) AS GROSS ....
  2.  
The code you've posted is not expected to work as it will put all records into the same cells. You have a right decision to use Cells object. Plz post the whole code using .Cells(J,..) references in the loop.

Regards,
Fish
Nov 2 '07 #4
Here is the updated version of the code. Now all I need to do is figure out how to get all the results from the query to write into the excel spreadsheet.

Expand|Select|Wrap|Line Numbers
  1. Public Function ExportQuery() As String
  2. On Error GoTo err_Handler
  3.  
  4.     'Excel object variables
  5.     Dim appExcel As Excel.Application
  6.     Dim wbk As Excel.Workbook
  7.     Dim wks As Excel.Worksheet
  8.  
  9.     Dim sTemplate As String
  10.     Dim sOutput As String       'Output string to build up
  11.  
  12.     Dim dbs As DAO.Database     'This is the database
  13.     Dim rst As DAO.Recordset    'Retrieves value of field
  14.     Dim sSQL As String          'SQL Statement
  15.     Dim IRecords As Long
  16.  
  17.     Dim J As Long
  18.  
  19.     DoCmd.Hourglass True
  20.  
  21.     'Set to break on all errors
  22.     On Error Resume Next
  23.  
  24.     'Start with clean file built from template file
  25.     sTemplate = CurrentProject.Path & "\JournalEntryTest.xls"
  26.     sOutput = CurrentProject.Path & "\JournalEntryFormTest.xls"
  27.     If Dir(sOutput) <> "" Then Kill sOutput
  28.     FileCopy sTemplate, sOutput
  29.  
  30.     'Create the Excel Application, Workbook and Worksheet and Database object
  31.     Set appExcel = New Excel.Application            'Assigns objects to variables
  32.     appExcel.Visible = True                         'Makes Excel session visible
  33.     Set wbk = appExcel.Workbooks.Open(sOutput)
  34.  
  35. sSQL = "SELECT  tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept, tblGLAllCodes.AccountDescription , tblAllADPCoCodes.BranchNumber, Sum(tblAllPerPayPeriodEarnings.GROSS) As GROSS FROM tblAllADPCoCodes, tblGLAllCodes INNER JOIN tblAllPerPayPeriodEarnings ON tblGLAllCodes.Dept = tblAllPerPayPeriodEarnings.GLDEPT GROUP BY tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept, tblGLAllCodes.AccountDescription, tblAllPerPayPeriodEarnings.PG, tblAllPerPayPeriodEarnings.[LOCATION#], tblAllADPCoCodes.BranchNumber, tblAllPerPayPeriodEarnings.CHECK_DT HAVING PG = '" & Forms("frmJE").Controls("cboADPCompany").Value & "' AND [LOCATION#] = '" & Forms("frmJE").Controls("cboLocationNo").Value & "' AND BranchNumber = " & Forms("frmJE").Controls("txtBranchNo").Value & " AND CHECK_DT Between #" & Forms("frmJE").Controls("txtFrom").Value & "# AND #" & Forms("frmJE").Controls("txtTo").Value & "#" & ";"
  36.  
  37.     Set dbs = CurrentDb                                 'Opens database
  38.     Set rst = dbs.OpenRecordset(sSQL, dbOpenSnapshot)   'Sets the record set to the query
  39.  
  40. Do Until rst.EOF
  41.     With wbk.Sheets("JournalEntry")
  42.     J = 15
  43.     IRecords = IRecords + 1
  44.         .Range("G3") = rst.Fields("BranchNumber").Value
  45.         .Cells(J, 11).Value = rst.Fields("GL_Acct").Value
  46.         .Cells(J, 12).Value = rst.Fields("GL_Subacct").Value
  47.         .Cells(J, 15).Value = rst.Fields("GROSS").Value
  48.         .Cells(J, 17).Value = rst.Fields("AccountDescription").Value
  49.  
  50.     End With
  51. J = J + 1
  52. rst.MoveNext
  53. Loop
  54.  
  55. 'wbk.Save
  56. wbk.Close True
  57.  
  58.  
  59.     ExportQuery = "Total of " & IRecords & " rows processed."
  60.  
  61. exit_Here:
  62. 'Cleanup all objects (resume next on errors)
  63. Set wbk = Nothing
  64. appExcel.Quit
  65. Set appExcel = Nothing
  66. Set rst = Nothing
  67. Set dbs = Nothing
  68. DoCmd.Hourglass False
  69. Exit Function
  70.  
  71. err_Handler:
  72.     ExportQuery = Err.Description
  73.     Resume exit_Here
  74. End Function
Nov 5 '07 #5
FishVal
2,653 Expert 2GB
Hi, there.

Take line 42
J=15
and put it before line 40
Do Untill ....
Nov 6 '07 #6
I was wondering if there is a way to total within a totals query. I mean the results of my query list everything out depending on account numbers and check date. What I want to do is have the amount be totalled based on account number and sub account number. So I dont have multiple entries of the same account and sub account number.

Hi, there.

Take line 42
J=15
and put it before line 40
Do Untill ....
Nov 6 '07 #7
View next message wrong post
Nov 7 '07 #8
I have a query that produces this output and I want to be able to get the sum of a field based on the Account & Subaccount matching. Here is what the query result looks like.
Account Subaccount AcctDesc SumOfGross Check Date
60110 0100 ...... 4160 9/7/2007
60110 0100 ...... 4160 9/21/2007
60810 0900 ...... 842 9/21/2007
60810 0900 ...... 843.5 9/7/2007

This is the results that appear on the excel spreadsheet:
Account Subaccount AcctDesc SumOfGross
60110 0100 ...... 8320
60810 0900 ...... 1684
60810 0900 ...... 1687

I would like to have the result look like this in my spreadsheet
Account Subaccount AcctDesc SumOfGross
60110 0100 ...... 8320
60810 0900 ...... 1685.5


I was wondering if there is a way to total within a totals query. I mean the results of my query list everything out depending on account numbers and check date. What I want to do is have the amount be totalled based on account number and sub account number. So I dont have multiple entries of the same account and sub account number.
Nov 7 '07 #9
Is there a way to automate other rows in excel based on the number of entries that are produced by the query. For example have a column named line increment by one for each result of the query that is exported to excel.
Nov 7 '07 #10
Is there any particular reason the results of the 'Sum(tblAllPerPayPeriodEarnings.GROSS) As Gross' are being doubled.

Expand|Select|Wrap|Line Numbers
  1. sSQL = "SELECT tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept, tblGLAllCodes.AccountDescription , tblAllADPCoCodes.BranchNumber, Sum(tblAllPerPayPeriodEarnings.GROSS) As GROSS FROM tblAllADPCoCodes, tblGLAllCodes INNER JOIN tblAllPerPayPeriodEarnings ON tblGLAllCodes.Dept = tblAllPerPayPeriodEarnings.GLDEPT WHERE  PG = '" & Forms("frmJE").Controls("cboADPCompany").Value & "' AND [LOCATION#] = '" & Forms("frmJE").Controls("cboLocationNo").Value & "' AND BranchNumber = " & Forms("frmJE").Controls("txtBranchNo").Value & " AND CHECK_DT Between #" & Forms("frmJE").Controls("txtFrom").Value & "# AND #" & Forms("frmJE").Controls("txtTo").Value & "# GROUP BY tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept, tblGLAllCodes.AccountDescription, tblAllPerPayPeriodEarnings.PG, tblAllPerPayPeriodEarnings.[LOCATION#], tblAllADPCoCodes.BranchNumber ORDER BY tblGLAllCodes.GL_Acct;"
Nov 13 '07 #11
FishVal
2,653 Expert 2GB
Hi, there.

You have tables [tblAllADPCoCodes] and [tblGLAllCodes] joined without criteria specified. This will give you Cartesian product - records with all possible combinations of the tables fields. Please explain what data is stored in both tables and what you are expecting to obtain joining the tables together.

P.S.
Tip: when building a complex query based on table joins try to do it adding tables and criteria stepwise controlling on each step whether the query returns what it is supposed to return.

P.P.S. Sorry for having been "ignoring" your posts. I've got many things to do.
Nov 13 '07 #12
Okay, I have the correct fields exporting into the excel spreadsheet. But now I need to be able to add the values of multiple fields of the query to be inserted into the same field so that I don't have to create multiple procedures and have to extra programming to get the result that I need. Here is what the code looks like:
Expand|Select|Wrap|Line Numbers
  1. Public Function ExportQuery() As String     'Function creates query result set the exports results to excel based on form selections
  2. On Error GoTo Err_Handler
  3.  
  4.     'Excel object variables
  5.     Dim appExcel As Excel.Application
  6.     Dim wbk As Excel.Workbook
  7.     Dim wks As Excel.Worksheet
  8.  
  9.     Dim sTemplate As String
  10.     Dim sOutput As String       'Output string to build up
  11.  
  12.     Dim dbs As DAO.Database     'This is the database
  13.     Dim rst As DAO.Recordset    'Retrieves value of field
  14.     Dim sSQL As String          'SQL Statement that generates output
  15.     Dim IRecords As Long        'Counts # of records returned by query
  16.     Dim J As Long               'Initializes line where data entry begins
  17.  
  18.     Dim strPeriod As String
  19.     Dim strYear As String
  20.  
  21.     DoCmd.Hourglass True
  22.  
  23.     'Set to break on all errors
  24.     On Error Resume Next
  25.  
  26.     'Start with clean file built from template file
  27.     sTemplate = CurrentProject.Path & "\JournalEntry.xls"       'file that spreadsheets are based off of
  28.     sOutput = CurrentProject.Path & "\Journal Entry " & txtBranchNo & " " & txtDescription & " .xls"    'This is how the result of the query is saved by excel
  29.     If Dir(sOutput) <> "" Then Kill sOutput
  30.     FileCopy sTemplate, sOutput
  31.  
  32.     'Create the Excel Application, Workbook and Worksheet and Database object
  33.     Set appExcel = New Excel.Application            'Assigns objects to variables
  34.     appExcel.Visible = True                         'Makes Excel session visible
  35.     Set wbk = appExcel.Workbooks.Open(sOutput)
  36.  
  37. sSQL = "SELECT tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGLAllCodes.GL_Dept, tblGLAllCodes.AccountDescription, tblAllADPCoCodes.BranchNumber, Sum(tblAllPerPayPeriodEarnings.GROSS) As GROSS, tblGLAllCodes.Ins, tblGLAllCodes.Tax FROM (tblGLAllCodes INNER JOIN tblAllPerPayPeriodEarnings ON tblGLAllCodes.Dept=tblAllPerPayPeriodEarnings.GLDEPT) INNER JOIN tblAllADPCoCodes ON (tblAllPerPayPeriodEarnings.PG=tblAllADPCoCodes.ADPCompany) AND (tblAllPerPayPeriodEarnings.[LOCATION#]=tblAllADPCoCodes.LocationNumber)  WHERE  PG = '" & Forms("frmJE").Controls("cboADPCompany").Value & "' AND [LOCATION#] = '" & Forms("frmJE").Controls("cboLocationNo").Value & "' AND BranchNumber = " & Forms("frmJE").Controls("txtBranchNo").Value & " AND CHECK_DT Between #" & Forms("frmJE").Controls("txtFrom").Value & "# AND #" & Forms("frmJE").Controls("txtTo").Value & "# " & _
  38. "GROUP BY tblAllPerPayPeriodEarnings.GLDEPT, tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct, tblGlAllCodes.GL_Dept, tblGLAllCodes.AccountDescription, tblGLAllCodes.Ins, tblGLAllCodes.Tax, tblAllADPCoCodes.BranchNumber ORDER BY tblGLAllCodes.GL_Acct, tblGLAllCodes.GL_Subacct;"
  39.  
  40.     Set dbs = CurrentDb                                 'Opens database
  41.     Set rst = dbs.OpenRecordset(sSQL, dbOpenSnapshot)   'Sets the record set to the query
  42.  
  43. J = 15        'Sets J equal to first row where data is to be entered
  44.  
  45. Do Until rst.EOF
  46.     With wbk.Sheets("JournalEntry")
  47.     IRecords = IRecords + 1
  48.         .Range("G3") = rst.Fields("BranchNumber").Value               'Company
  49.         .Cells(J, 11).Value = rst.Fields("GL_Acct").Value             'Account
  50.         .Cells(J, 12).Value = rst.Fields("GL_Subacct").Value          'Sub Account
  51.         .Cells(J, 15).Value = rst.Fields("GROSS").Value               'Amount
  52.         .Cells(J, 17).Value = rst.Fields("AccountDescription").Value  'Description
  53.         .Cells(J, 3).Value = IRecords                                 'Line
  54.         .Cells(J, 4).Value = Year(Now())                              'Year
  55.         .Cells(J, 5).Value = .Range("G4")                             'System
  56.         .Cells(J, 6).Value = .Range("G5")                             'Journal
  57.         .Cells(J, 7).Value = Month(Now()) - 1                         'Period
  58.         .Cells(J, 8).Value = .Range("G8")                             'Type
  59.         .Cells(J, 9).Value = rst.Fields("BranchNumber").Value         'To Company
  60.         .Cells(J, 10).Value = .Range("G3") & "" & ("600")             'Accounting Unit
  61.         .Cells(J, 18).Value = .Range("G10")                           'Auto Reverse
  62.         .Cells(J, 2).Value = ("A")                                    'Func Code
  63.  
  64.     End With
  65.  
  66. J = J + 1       'Moves to next row each time through loop
  67. rst.MoveNext
  68. Loop
  69.  
  70. 'Saves & closes workbook
  71. wbk.Close True
  72.  
  73.     ExportQuery = "Total of " & IRecords & " rows processed."       'Displays total number of records processed & that were sent to excel
  74.  
  75. exit_Here:
  76.  
  77. 'Cleanup all objects (resume next on errors)
  78. Set wbk = Nothing
  79. appExcel.Quit
  80. Set appExcel = Nothing
  81. Set rst = Nothing
  82. Set dbs = Nothing
  83. DoCmd.Hourglass False
  84. Exit Function
  85.  
  86. Err_Handler:
  87.     ExportQuery = Err.Description
  88.     Resume exit_Here
  89. End Function
  90.  
  91. Private Sub btnCloseJE_Click() 'Closes Journal Entry Form
  92. On Error GoTo Err_btnCloseJE_Click
  93.  
  94.  
  95.     DoCmd.Close
  96.  
  97. Exit_btnCloseJE_Click:
  98.     Exit Sub
  99.  
  100. Err_btnCloseJE_Click:
  101.     MsgBox Err.Description
  102.     Resume Exit_btnCloseJE_Click
  103.  
  104. End Sub
Where I need to be able to add Ins, Tax Account Numbesr to the Account column in the spreadsheet that is being used.
Jan 3 '08 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
by: D | last post by:
I've created a report with many subreports of aggregate data. I want my client to be able to export this data to Excel to make her charts, etc. Only one problem: one of the fields is a "SchoolYear"...
2
by: Kenneth | last post by:
How do I remove the limitation in Access that deny me from exporting 24000 rows and 17 columns (in a query) into Excel? Kenneth
1
by: Suffrinmick | last post by:
Hello Everyone I've built a database using Access 2000 which includes a query which is built using a form containing filters. No problem. When I export the results of the query to excel, (File >...
21
by: bobh | last post by:
Hi All, In Access97 I have a table that's greater than 65k records and I'm looking for a VBA way to export the records to Excel. Anyone have vba code to export from access to excel and have the...
16
by: robertmeyer1 | last post by:
Hey, I am working on creating a query which will export the information to excel. I have a specific excel document which has line by line items (corresponds to access query). Here's the...
6
by: jpatchak | last post by:
Hi, I have kind of a strange problem. I have a report that I need to export to excel. The report opens fine in Access and when I export it or click on "Analyze It with Microsoft Office Excel," I...
2
by: eskelies | last post by:
Hello all, I have data, which is separated into account numbers (ie. 10, 20, 30), but it exists in one query. Right now, I have an access macro "transferspreadsheet," which is exporting all the...
4
by: myemail.an | last post by:
Hi all, I use Access 2007 and have the following problems: when exporting banal select queries (either to Excel or to a csv file) I find that exporting often doesn't work and creates a file with...
9
by: QCLee | last post by:
Sir can you help me to transfer my Access Query to MS excel? i have a command button on the form to export the parameter query named "HVACWindwardQuery" to excel spreadsheet and i got the codes...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.