Anyone knows how to pass getGroupKey() value to a SQL statement under the group. I tried this in Function ObtainSelectStatement() As String:
ObtainSelectStatement = "SELECT order from orders where order_date = '" & getGroupKey() & "'"
where getGroupKey() is date type. I got illegal use of variable error.
Any one can help me? Thanks!!!
ObtainSelectStatement = "SELECT order from orders where order_date = '" & getGroupKey() & "'"
where getGroupKey() is date type. I got illegal use of variable error.
Any one can help me? Thanks!!!