I have a complex issue revolving around MS Query links to an Access database. I have a general query written in Access and then use MS Query parameters based on certain cell values to return the data desired in the particular workbook.
In other words, if A1 has "New York" it will return one set of information, as opposed to "Chicago" etc.
The problem I have is that when I copy the sheet the parameter string in MS Query refers back to the original.
So my questions are:
1 Can VBA be used to update an MS Query parameter string in Excel?
2 Is there a way to make the MS Query parameter referential like a cell?
I apologize that I cannot upload any code, but this thing is a mess, what with an Access db, MS Query script, vba macro and target sheets. Any other general advice would be welcome.
In other words, if A1 has "New York" it will return one set of information, as opposed to "Chicago" etc.
The problem I have is that when I copy the sheet the parameter string in MS Query refers back to the original.
So my questions are:
1 Can VBA be used to update an MS Query parameter string in Excel?
2 Is there a way to make the MS Query parameter referential like a cell?
I apologize that I cannot upload any code, but this thing is a mess, what with an Access db, MS Query script, vba macro and target sheets. Any other general advice would be welcome.