couldnt i write in code portion #1 to replace portion #2 that is currently there so that when the user clicked the form button the query data would be exported to excel?
#1
DoCmd.TransferSpreadsheet acExport, "Microsoft Excel", "Commodity", "c:/query_data.xls", True
Application.FollowHyperlink...