J
jk
I have the following action to export from a command button:
DoCmd.OutputTo acOutputQuery, "qryCustomerInvoices3", acFormatXLS, _
strPath & "\" & strFile ', 0
DoCmd.TransferSpreadsheet _
TransferType:=acExport,
TableName:="qryCustomerInvoices2", _
FileName:=strPath & "\" & strFile,
HasFieldNames:=True
The export works great but while the first sheet has all the format labels
and columns aligned, the second sheet created needs to be manually adjusted
to open viewable spaces. Is there a way that the second sheet can be exported
in the same clean format as the first?
DoCmd.OutputTo acOutputQuery, "qryCustomerInvoices3", acFormatXLS, _
strPath & "\" & strFile ', 0
DoCmd.TransferSpreadsheet _
TransferType:=acExport,
TableName:="qryCustomerInvoices2", _
FileName:=strPath & "\" & strFile,
HasFieldNames:=True
The export works great but while the first sheet has all the format labels
and columns aligned, the second sheet created needs to be manually adjusted
to open viewable spaces. Is there a way that the second sheet can be exported
in the same clean format as the first?