Ok...let's see if I can explain this properly.
I have a form.
On the form there is a dropdown box to select employee last name.
I then have a button to show a qry, passing the employee name as the criteria:
And then I run a macro to output the query to an XLS file.
The Output To file is:
I'm trying to pass the Employee Name to the macro, so as to avoid the prompt. I have to have an employeeName_Su rvey.xls for each employee.
Now I know this is probably a God-Awful way of going about this and that I am making some seasoned programmers cringe, but it's all I came up with.
I initially did it manually...open ed the query, sorted by employee name, then ran the outPut macro....I'm trying to streamline this a bit as I have a boatload of employees to dump this survey out for.
Thanks in advance!
I have a form.
On the form there is a dropdown box to select employee last name.
I then have a button to show a qry, passing the employee name as the criteria:
Code:
[Forms]![frmEmployee]![txtEmployeeLastName]
The Output To file is:
Code:
="C:\Documents and Settings\arthur\Desktop\Survey_1011\" & InputBox("Enter the employee name that's in the file name:") & "_Survey.xls"
Now I know this is probably a God-Awful way of going about this and that I am making some seasoned programmers cringe, but it's all I came up with.
I initially did it manually...open ed the query, sorted by employee name, then ran the outPut macro....I'm trying to streamline this a bit as I have a boatload of employees to dump this survey out for.
Thanks in advance!
Comment