I have the following code in a module:
Private Sub Exprt_Click()
Dim strFileName As String
Dim tOutputPath As String
strFileName = Format(Date, "ddmmyyyy") & ".xls"
tOutputPath = "E:\Jemmo\BMK Classified\SamplesForBMK\"
DoCmd.TransferText acExportDelim, , "This Week-Deduped", tOutputPath & strFileName, 1, , 1
MsgBox "The registrations have been exported successfully."
End Sub
When I run the module, I get a run-time error that the database or object is read-only. Can anyone help?
Thanks,
Jempie
Private Sub Exprt_Click()
Dim strFileName As String
Dim tOutputPath As String
strFileName = Format(Date, "ddmmyyyy") & ".xls"
tOutputPath = "E:\Jemmo\BMK Classified\SamplesForBMK\"
DoCmd.TransferText acExportDelim, , "This Week-Deduped", tOutputPath & strFileName, 1, , 1
MsgBox "The registrations have been exported successfully."
End Sub
When I run the module, I get a run-time error that the database or object is read-only. Can anyone help?
Thanks,
Jempie
Last edited: