Hi,
I have a problem with a query with parameters in MS Excel.
I have a database in MS Access where I set up some queries. I want to be able to transfert a result of a query to MS Excel to a pivottable. I did it by getting external data (ms query). I wanted my query to get parameters from a spreadsheet to limit the amount of data i get to Excel. I also managed to do that by adding "?" in query definition. I set up cells from which Excel should get criteria. It works fine until I close my workbook. When opening again and trying to refresh data connection Excel crashes down with a message "Excel stopped working..." It looks for me that query parameters are cleared out when closing the workbook. Is there a way to prevent that? At the moment I just have to define parameters each time I open the workbook.
I looked on many websites but didn't find a solution. Hope you can help.
I have a problem with a query with parameters in MS Excel.
I have a database in MS Access where I set up some queries. I want to be able to transfert a result of a query to MS Excel to a pivottable. I did it by getting external data (ms query). I wanted my query to get parameters from a spreadsheet to limit the amount of data i get to Excel. I also managed to do that by adding "?" in query definition. I set up cells from which Excel should get criteria. It works fine until I close my workbook. When opening again and trying to refresh data connection Excel crashes down with a message "Excel stopped working..." It looks for me that query parameters are cleared out when closing the workbook. Is there a way to prevent that? At the moment I just have to define parameters each time I open the workbook.
I looked on many websites but didn't find a solution. Hope you can help.