Statistician
MIS
Dear all
I am currently running SQL in VBA (MS Access).
I am trying to pass a date field from the SQL SELECT statement to a function and to return a new date based on the function.
The code is as follows:
"SELECT [TRADEDATE],myfunction(TRADEDATE) FROM myTable"
TRADE DATE is a field from a table.
I am trying to pass the TRADEDATE to a function where the function returns a new date.
The basic question I am trying to ask is whether I can pass a field from an SQL SELECT statement to another function in code?
Thanks for any offers of help!!!!
I am currently running SQL in VBA (MS Access).
I am trying to pass a date field from the SQL SELECT statement to a function and to return a new date based on the function.
The code is as follows:
"SELECT [TRADEDATE],myfunction(TRADEDATE) FROM myTable"
TRADE DATE is a field from a table.
I am trying to pass the TRADEDATE to a function where the function returns a new date.
The basic question I am trying to ask is whether I can pass a field from an SQL SELECT statement to another function in code?
Thanks for any offers of help!!!!