Hello,
I'm pretty new to Excel VBA and using Access at all. I realize that it is not recommended to use Excel as a front end for Access, but due to many constraints, that is what I have been tasked to do. I have been able to find enough information to write a macro to return Employee Information for a specified department. What I would like to do now, however, is see if it is possible to refer to a specific cell on my spreadsheet, for which I will have a drop down, and return the employees from that department.
I have tried defining a string for the department and assigning it the value in the drop down box (cell P2), then attempting to have the macro return values where the department is equal to that string, but I keep getting errors. Here's one of the many iterations of lines that I experimented with adding and did not have any luck:
I'm not sure if any of this is possible and I appreciate any help. Here's the code which worked to return all employee data from the sales department:
Bookmarks