B
Biggles
Hello
I am building a series of large projects in one MPD project database. I am
familiar with Access VBA, and that might be causing me some problems. Enough
background, here is my question.
The driving factor for all my tasks is work. I have made each task fixed
work, and I am importing tasks that have 150 - 1000 hours of work. If I try
to import that into the work column of the MSP_TASKS table through VBA with
this code:
ssql(11) = "INSERT INTO MSP_TASKS (" & _
"PROJ_ID,TASK_UID,TASK_ID,TASK_NAME,TASK_OUTLINE_LEVEL," & _
"EXT_EDIT_REF_DATA,TASK_WBS,task_type,task_work,task_is_milestone) " & _
"VALUES (" & tr_projid & "," & _
rs_proj(3)!next_taskuid & "," & _
rs_proj(3)!next_taskid & "," & _
"'" & rs_plan(3)!ae_abbv & " " &
v_taskname & "'," & _
rs_plan(4)!outline_level & "," & _
"1,'" & WBS_PART(6) & "'" & ",2," & _
HOURS * 60 * 1000 & "," &
v_milestone & ")"
I am using the HOURS * 60 * 1000 to store the work in the way I understand
project wants it. However, I keep getting an overflow error. How can I
change the format of the work field for every task in my project database (7
different projects) in VBA?
I am building a series of large projects in one MPD project database. I am
familiar with Access VBA, and that might be causing me some problems. Enough
background, here is my question.
The driving factor for all my tasks is work. I have made each task fixed
work, and I am importing tasks that have 150 - 1000 hours of work. If I try
to import that into the work column of the MSP_TASKS table through VBA with
this code:
ssql(11) = "INSERT INTO MSP_TASKS (" & _
"PROJ_ID,TASK_UID,TASK_ID,TASK_NAME,TASK_OUTLINE_LEVEL," & _
"EXT_EDIT_REF_DATA,TASK_WBS,task_type,task_work,task_is_milestone) " & _
"VALUES (" & tr_projid & "," & _
rs_proj(3)!next_taskuid & "," & _
rs_proj(3)!next_taskid & "," & _
"'" & rs_plan(3)!ae_abbv & " " &
v_taskname & "'," & _
rs_plan(4)!outline_level & "," & _
"1,'" & WBS_PART(6) & "'" & ",2," & _
HOURS * 60 * 1000 & "," &
v_milestone & ")"
I am using the HOURS * 60 * 1000 to store the work in the way I understand
project wants it. However, I keep getting an overflow error. How can I
change the format of the work field for every task in my project database (7
different projects) in VBA?