Hi, I would like to make a vba code that can query sql and later use that value to do something else.
For example, I would like to find out the number of values of certain table and if its more than let's say 3, I would like to send out the message.
I know how to send out the message but I am not sure how to write VBA code to get the sql query and put the result into a dim variable for later use.
Please give me answer thank you~~
For example, I would like to find out the number of values of certain table and if its more than let's say 3, I would like to send out the message.
I know how to send out the message but I am not sure how to write VBA code to get the sql query and put the result into a dim variable for later use.
Please give me answer thank you~~