Hello,
I have an access database set up with an Excel frontend, and I regularly use an ADO connection to send data back and forth between the two. For the current task I'm working on, I want to filter the data I am pulling from Access based on a list of account numbers I will have listed in the Excel program (the list will change each time).
I can't use the list of account numbers as a WHERE clause, as there may be as many as 500 account numbers at a time. For the same reason, I don't want to query the database once for each account number. Is there a way I can use the list of account numbers in Excel as though it were a recordset or table in Access, so that I can do some kind of join to filter my Access results?
If so, how would I accomplish this? What would the syntax look like?
Thanks in advance for any help.
I have an access database set up with an Excel frontend, and I regularly use an ADO connection to send data back and forth between the two. For the current task I'm working on, I want to filter the data I am pulling from Access based on a list of account numbers I will have listed in the Excel program (the list will change each time).
I can't use the list of account numbers as a WHERE clause, as there may be as many as 500 account numbers at a time. For the same reason, I don't want to query the database once for each account number. Is there a way I can use the list of account numbers in Excel as though it were a recordset or table in Access, so that I can do some kind of join to filter my Access results?
If so, how would I accomplish this? What would the syntax look like?
Thanks in advance for any help.