N
njack217
I am trying to set a specific value to a variable to be retrieved on
another line in the query where a specific value changes then the
value from the variable will be returned, but so far am having no
luck. here is the code for the module that contains the variable and
the sql that I am using any help would be greatly appreciated.
Thanks,
Nate
Option Compare Database
Global GBV As String
Public Function init_globals()
GBV = Null
End Function
Public Function globalvar(ivalue) As String
Function init_globals()
GBV = ivalue
End Function
SELECT prm5051.level, prm5051.part, prm5051.desc, prm5051.qty,
prm5051.uom, prm5051.mli, IIf([level] Like "0",[globalvar]
([part]),Null) AS Expr1, [gbv] AS base
FROM prm5051;
another line in the query where a specific value changes then the
value from the variable will be returned, but so far am having no
luck. here is the code for the module that contains the variable and
the sql that I am using any help would be greatly appreciated.
Thanks,
Nate
Option Compare Database
Global GBV As String
Public Function init_globals()
GBV = Null
End Function
Public Function globalvar(ivalue) As String
Function init_globals()
GBV = ivalue
End Function
SELECT prm5051.level, prm5051.part, prm5051.desc, prm5051.qty,
prm5051.uom, prm5051.mli, IIf([level] Like "0",[globalvar]
([part]),Null) AS Expr1, [gbv] AS base
FROM prm5051;