Hello,
I need help writing a simple Sub or a Function to perform an Insert any time it is called. When I call the Sub or Function I want to pass it a number (ie. 398594) that I have in a variable called numCount. In the Sub or Fun, I would like to set the database connection, perform the insert, and close the connection and exit the Sub. I don't know how to do this programmatically. So you have the correct information from my database I will list the
details.
The DSN name is DSNCount.
The Table is tblCount.
The Field is Count.
The value that is passed to it when it is called is numCount.
Thank you,
Steve
I need help writing a simple Sub or a Function to perform an Insert any time it is called. When I call the Sub or Function I want to pass it a number (ie. 398594) that I have in a variable called numCount. In the Sub or Fun, I would like to set the database connection, perform the insert, and close the connection and exit the Sub. I don't know how to do this programmatically. So you have the correct information from my database I will list the
details.
The DSN name is DSNCount.
The Table is tblCount.
The Field is Count.
The value that is passed to it when it is called is numCount.
Thank you,
Steve