I want to run an sql query inside a function i have written in vb. I need the function to return the result of the query.
can anyone help?
Also, if I have written a function that returns an int, and i am then displaying this on a form, by setting the control source of a text field to the result of the function. How can I then save the result of the function (shown in the text box) to a record of my choice.
Thank in advance.
can anyone help?
Also, if I have written a function that returns an int, and i am then displaying this on a form, by setting the control source of a text field to the result of the function. How can I then save the result of the function (shown in the text box) to a record of my choice.
Thank in advance.