B
Biggles
Probably not a good title, but here is my problem. I have a table that
defines the relationship between one variable and the eventual source for
that value. Here is that table:
CONV_VALUE FIELD_TAG FIELD_VALUE_SOURCE
188743767 AuditHrs rs(1)!yr1audhrs
188743768 ITHRS rs(1)!yr1ithrs
RS(7).open selects the above table and RS(1) selects the source where the
values such as audit hours and IT hours are held.
I want create this:
V_NUM_FIELD = "'" & rs(7)!CONV_VALUE & "'"
ssql(3) = "INSERT INTO MSP_NUMBER_FIELDS " & _
"(PROJ_ID,
NUM_CATEGORY,NUM_REF_UID,NUM_FIELD_ID,NUM_VALUE) " & _
"VALUES (" & v_proj_id & ",0," & v_TASK_UID & "," & _
rs(7)!CONV_VALUE & "," & V_NUM_FIELD & ")"
But I know that my ssql(3) will end up as
....Values(...,188743767,'rs(1)!yr1audhrs')
as opposed to
....Values(...,188743767,300) which is what I want.
Is this possible without writing a large select case statement, (which means
that I would have to maintain two lists, original table and the select case)?
defines the relationship between one variable and the eventual source for
that value. Here is that table:
CONV_VALUE FIELD_TAG FIELD_VALUE_SOURCE
188743767 AuditHrs rs(1)!yr1audhrs
188743768 ITHRS rs(1)!yr1ithrs
RS(7).open selects the above table and RS(1) selects the source where the
values such as audit hours and IT hours are held.
I want create this:
V_NUM_FIELD = "'" & rs(7)!CONV_VALUE & "'"
ssql(3) = "INSERT INTO MSP_NUMBER_FIELDS " & _
"(PROJ_ID,
NUM_CATEGORY,NUM_REF_UID,NUM_FIELD_ID,NUM_VALUE) " & _
"VALUES (" & v_proj_id & ",0," & v_TASK_UID & "," & _
rs(7)!CONV_VALUE & "," & V_NUM_FIELD & ")"
But I know that my ssql(3) will end up as
....Values(...,188743767,'rs(1)!yr1audhrs')
as opposed to
....Values(...,188743767,300) which is what I want.
Is this possible without writing a large select case statement, (which means
that I would have to maintain two lists, original table and the select case)?