I'm new here and will admit right off the bat, most of this is above my head, but I like Access and learning the ticks of the trade so to speak. Here is one and I’m sure there is a way, but I’m stuck.
Below is triggered when a button is clicked in a form:
The “Employee” and “Manager” are replaced with the actual names, (A – X). I would like to avoid the maintenance of having to update the form’s procedure, which exports the results of a query (Employee) to an Excel Workbook (Manager) with a distinct worksheet (Employee) and then having to create a query each time there is a change with the “Employee”.
I have been able to write a simple query that will create the cmd above, but I don’t think a cut and paste will work anytime there is a change of names.
Thank you in advance,
Kit
Below is triggered when a button is clicked in a form:
Code:
DoCmd.TransferSpreadsheet 1, 8, "Employee", "C:\Manager.xls", True
I have been able to write a simple query that will create the cmd above, but I don’t think a cut and paste will work anytime there is a change of names.
Thank you in advance,
Kit
Comment