Clifford said:
Hi Phil,
What is the SQL of the query? How are you exporting when you get the
error? Manually? Which version of Access?
Clifford Bass
:
Access 2003.
Right now I am simply going to
File|Export|, Save as type: Textfiles, hit export, get error.
If I choose Excel instead, it works fine.
Query Follows;
SELECT RoyaltyReportBase.[Vendor ID] AS [Supplier#],
DatePart("m",Forms!Sales_Reports_Form!ENDDATE) & "-" &
Year(Forms!Sales_Reports_Form!ENDDATE) & " Royalty-" &
RoyaltyReportBase!Brand AS [Invoice ID], 8205 AS Account,
IIf(RoyaltyReportBase!Division="Apparel","Skate",RoyaltyReportBase!Division)
AS Division, "MKTG" AS Department, RoyaltyReportBase.Category,
IIf(RoyaltyReportBase!Brand="Santa Cruz","Santa Cruz
Skate",RoyaltyReportBase!Brand) AS Brand,
DatePart("m",Forms!Sales_Reports_Form!ENDDATE) & "-" &
Year(Forms!Sales_Reports_Form!ENDDATE) & " Royalty-" &
RoyaltyReportBase!Brand AS [Memo], "" AS Project,
Sum(RoyaltyReportBase.Royalty) AS Amount
FROM RoyaltyReportBase
GROUP BY RoyaltyReportBase.[Vendor ID],
DatePart("m",Forms!Sales_Reports_Form!ENDDATE) & "-" &
Year(Forms!Sales_Reports_Form!ENDDATE) & " Royalty-" &
RoyaltyReportBase!Brand, 8205,
IIf(RoyaltyReportBase!Division="Apparel","Skate",RoyaltyReportBase!Division),
"MKTG", RoyaltyReportBase.Category, IIf(RoyaltyReportBase!Brand="Santa
Cruz","Santa Cruz Skate",RoyaltyReportBase!Brand),
DatePart("m",Forms!Sales_Reports_Form!ENDDATE) & "-" &
Year(Forms!Sales_Reports_Form!ENDDATE) & " Royalty-" &
RoyaltyReportBase!Brand, ""
ORDER BY RoyaltyReportBase.[Vendor ID],
DatePart("m",Forms!Sales_Reports_Form!ENDDATE) & "-" &
Year(Forms!Sales_Reports_Form!ENDDATE) & " Royalty-" &
RoyaltyReportBase!Brand, IIf(RoyaltyReportBase!Brand="Santa Cruz","Santa
Cruz Skate",RoyaltyReportBase!Brand), RoyaltyReportBase.Category;