G
Guest
I have the following table:
CONV_VALUE CONV_STRING TAG FIELD_VALUE_SOURCE
188743770 Task Number4 SOXIT rs_plan(3)!soxit
188743769 Task Number3 SOXHRS rs_plan(3)!soxhrs
188743982 Task Number6 OTHER rs_plan(3)!other
188743743 Task Text5 Ori_grp orig_projid
188743768 Task Number2 ITHRS rs_plan(3)!yr1ithrs
188743771 Task Number5 CA_HRS rs_plan(3)!intCaud_hrs
188743740 Task Text4 Audit Mgr rs_plan(3)!txtMGR_NAME
188743737 Task Text3 AudName rs_plan(3)!txtaudit_entity
188743767 Task Number1 AUDHRS rs_plan(3)!yr1audhrs
188743731 Task Text1 AE_NO rs_plan(2)!txtaud_no
188743734 Task Text2 AE_ABBV rs_plan(3)!ae_abbv
I open this dataset up in a recordset, but I want VBA to use the value that
the term in FIELD_VALUE_SOURCE represents, not the actual value.
for instance, if I am looking at the first record and SOXIT = 400, when I
create the SSQL statement, it should look like this: (the very last value is
400)
INSERT INTO MSP_TEXT_FIELDS
(PROJ_ID,TEXT_CATEGORY,TEXT_REF_UID,TEXT_FIELD_ID,TEXT_VALUE)
VALUES (1,1,1,188743767,400)
however, I am getting this:
INSERT INTO MSP_TEXT_FIELDS
(PROJ_ID,TEXT_CATEGORY,TEXT_REF_UID,TEXT_FIELD_ID,TEXT_VALUE) VALUES
(1,1,1,188743767,'rs_plan(3)!soxit')
Am I grasping at straws? Can I make access essentially resolve that
variable twice? I am trying to figure out a way to associate the variable
(such as RS_PLAN(3)!SOXIT) with the CONV_VALUE, without writing massive dual
array statements, which I don't actually know if I can do. This is for
moving things from Access to Project.
CONV_VALUE CONV_STRING TAG FIELD_VALUE_SOURCE
188743770 Task Number4 SOXIT rs_plan(3)!soxit
188743769 Task Number3 SOXHRS rs_plan(3)!soxhrs
188743982 Task Number6 OTHER rs_plan(3)!other
188743743 Task Text5 Ori_grp orig_projid
188743768 Task Number2 ITHRS rs_plan(3)!yr1ithrs
188743771 Task Number5 CA_HRS rs_plan(3)!intCaud_hrs
188743740 Task Text4 Audit Mgr rs_plan(3)!txtMGR_NAME
188743737 Task Text3 AudName rs_plan(3)!txtaudit_entity
188743767 Task Number1 AUDHRS rs_plan(3)!yr1audhrs
188743731 Task Text1 AE_NO rs_plan(2)!txtaud_no
188743734 Task Text2 AE_ABBV rs_plan(3)!ae_abbv
I open this dataset up in a recordset, but I want VBA to use the value that
the term in FIELD_VALUE_SOURCE represents, not the actual value.
for instance, if I am looking at the first record and SOXIT = 400, when I
create the SSQL statement, it should look like this: (the very last value is
400)
INSERT INTO MSP_TEXT_FIELDS
(PROJ_ID,TEXT_CATEGORY,TEXT_REF_UID,TEXT_FIELD_ID,TEXT_VALUE)
VALUES (1,1,1,188743767,400)
however, I am getting this:
INSERT INTO MSP_TEXT_FIELDS
(PROJ_ID,TEXT_CATEGORY,TEXT_REF_UID,TEXT_FIELD_ID,TEXT_VALUE) VALUES
(1,1,1,188743767,'rs_plan(3)!soxit')
Am I grasping at straws? Can I make access essentially resolve that
variable twice? I am trying to figure out a way to associate the variable
(such as RS_PLAN(3)!SOXIT) with the CONV_VALUE, without writing massive dual
array statements, which I don't actually know if I can do. This is for
moving things from Access to Project.