J
Jack Leach
Is there a way to use Eval (or something similar) for get the value of a
constant (without having to go through a function for it)
I have a table of reports, in which I store some Where clauses to provide
various data from the same base report... in the event of some of these
clauses being over 255 chars long, I would like to store "CONST:<const name>"
and read this back from procedure that will open my reports...
Sub Report_Open(rptID As Long)
Dim strWhere as String
strWhere = GetRptClause(rptID)
If Left(strWhere, 5) = "CONST" Then
strWhere = Eval(Right(Len(strWhere) - 6))
End If
End Sub
Eval does not work (Access cannot find the expression you referred to)...
does anyone know of a way to do this, or will I have to create a function
where I pass the constant name as a string with a whole bunch of Select Case
options...
thanks!
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
constant (without having to go through a function for it)
I have a table of reports, in which I store some Where clauses to provide
various data from the same base report... in the event of some of these
clauses being over 255 chars long, I would like to store "CONST:<const name>"
and read this back from procedure that will open my reports...
Sub Report_Open(rptID As Long)
Dim strWhere as String
strWhere = GetRptClause(rptID)
If Left(strWhere, 5) = "CONST" Then
strWhere = Eval(Right(Len(strWhere) - 6))
End If
End Sub
Eval does not work (Access cannot find the expression you referred to)...
does anyone know of a way to do this, or will I have to create a function
where I pass the constant name as a string with a whole bunch of Select Case
options...
thanks!
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)