I tried to write a macro that would export a set of queries to a dynamically named excel file referencing the date. Here is my code:
Function Export()
On Error GoTo Export_Err
DoCmd.OutputTo acOutputQuery, "Bernie Sandoval", "ExcelWorkbook(*.xlsx)", "C:\Users\kamend\Documents\Data Clean...