I see Macro, Access Options, Database1 Utilities, Digital Signature. (Sorry if there is not an exact match of the wordings - I translated them from another language.)
Hello, I have tried your code and it worked. However, that is not the case in my file. Compile error: User-defined type not defined appeared on the line Dim fd As Office.FileDialog. How to resolve it?
My supervisor asked me that whether an access table can be exported to their wanted directory. Currently, I am using
outputFileName = CurrentProject.Path & "\Report002_" & tb_Year.Value & cmb_Quarter.Value & ".xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9...
I have tried it and it showed a new error: error 7874 (Microsoft Access can't find the object). I edited DoCmd.OpenTable ("Normal") to DoCmd.OpenTable ("dbo_RPS_STRATUM_002") and this error popped up, but I am sure that "dbo_RPS_STRATUM_002" exists, just that it has been closed in the above...
Hello, I have encountered a problem when trying to export an xls file in Access VBA.
My code is as follows:
Private Sub btn_exportnormal_Click()
Dim outputFileName As String
Dim nrange1, nrange2 As Integer
If tb_Year <> "" And cmb_Quarter <> "" Then
Select Case...