I'm sure this is easy, I'm just not getting it though.
All i want to do is use an ado connection in vba to create a record set based on my sql statement and then populate my variables with the data from the record set.
But I don't know if this should be in a sub, or it's own function, and I don't know how to put my recordset in to variables.
Thanks for anyt thoughts.
All i want to do is use an ado connection in vba to create a record set based on my sql statement and then populate my variables with the data from the record set.
But I don't know if this should be in a sub, or it's own function, and I don't know how to put my recordset in to variables.
Thanks for anyt thoughts.