Hi
I am using the Docmd.Outputto command to save the currently active report in either Word or Excel format.
The report consists of a concatenated field (=[title] & " " & [first name] & " " & [last name]) and a number of unique fields (eg [emailaddress] and [mobilephoneno]
When the report is exported using the export command from the ribbon, the data is output correctly. However when the data is output via VBA, the concatenated field does not report correctly - the output is
Mr Alan Biggs, biggsemail address, biggs mobile no
Mrs Jane Doe, doeemail address, does mobile no
Mrs Jane Doe, anemail address, a mobile no
Mrs Jane Doe, anotheremail address, anothermobile no
Mrs Jane Doe etc etc
The code is very simple:
Code:
Private Sub Command27_Click()
On Error Resume Next
DoCmd.OutputTo acOutputReport, , acFormatRTF, , True
End Sub
Any help greatly appreciated
Dave