table variable lookup

  • Thread starter Thread starter Guest
  • Start date Start date
You can create a query that include all the fields from
the table + another field that based on a function that
return tha value of the variable.

"Select *.MyTable, GetVar() as MyVar from MyTable"

function GetVar()
GetVar=MyPubVar
end function
 
The function is created in a module
function GetVar()

GetVar=MyPubVar
end function

and the SQL in a query
"Select *.MyTable, GetVar() as MyVar from MyTable"
 
still can't get it work

Ofer said:
The function is created in a module
function GetVar()

GetVar=MyPubVar
end function

and the SQL in a query
"Select *.MyTable, GetVar() as MyVar from MyTable"
 
Back
Top