For reasons out of my control I cannot use Microsoft Query and parameters for this, as would be desirable, so I wish to go through this route, but I'm not sure how.
Using VBA, I want to establish a connection using ODBC to a database, and execute a SQL query passing two parameters that will be entered into cells A1 and B1 in the Excel worksheet by the users. I then require the dataset to be returned to the worksheet.
Note: I'm using Microsoft Excel 2010 and Informix 3.82.
:o:confused:
Using VBA, I want to establish a connection using ODBC to a database, and execute a SQL query passing two parameters that will be entered into cells A1 and B1 in the Excel worksheet by the users. I then require the dataset to be returned to the worksheet.
Note: I'm using Microsoft Excel 2010 and Informix 3.82.
:o:confused: