To be clear, I am NOT a VBA programmer. I'm doing good to be able to pronounce it, but a task I have requires me to get a piece of VBA code to work with a query and I am missing one element- how to pass a variable back from a query criteria to my VBA so the SQL can select on it.
So far, I'm at a loss. When I refresh the sheet, it asks for the value ([Value=?]) and uses it in the query to select via SQL. When the user double-clicks, it runs VBA code, including more SQL, to retrieve the data from an outside source via ODBC, and populates another sheet in the workbook. What I am needing to do is get that value in the query and feed the VBA with it. Is this possible?
Thanks!
NotInKeys
So far, I'm at a loss. When I refresh the sheet, it asks for the value ([Value=?]) and uses it in the query to select via SQL. When the user double-clicks, it runs VBA code, including more SQL, to retrieve the data from an outside source via ODBC, and populates another sheet in the workbook. What I am needing to do is get that value in the query and feed the VBA with it. Is this possible?
Thanks!
NotInKeys