M
Mark
Hello all,
I have three fields in one record. I’m am wanting to update different table
with these three fields, but create a record for each one.
So would look like this
From this
Tb1
[Field1], [Field2], [Field 3]
Data1, Data2, Data3
To this
Tb2
[Field1]
Data1
Data2
Data3
I am trying this below, but get syntax errors on my sql statement. Do you
see anything wrong with it? Or is there a better easier way to do this?
Do Until vCnt > 3
Select Case vCnt
Case 1
vDimCk = rs!ELength
Case 2
vDimCk = rs!EHeight
Case 3
vDimCk = rs!EWidth
End Select
vSql1 = "insert into tbDimCk (DimCk) " & " vdimCk " & " "
DoCmd.RunSQL (vSql1)
vCnt = vCnt + 1
Loop
I have three fields in one record. I’m am wanting to update different table
with these three fields, but create a record for each one.
So would look like this
From this
Tb1
[Field1], [Field2], [Field 3]
Data1, Data2, Data3
To this
Tb2
[Field1]
Data1
Data2
Data3
I am trying this below, but get syntax errors on my sql statement. Do you
see anything wrong with it? Or is there a better easier way to do this?
Do Until vCnt > 3
Select Case vCnt
Case 1
vDimCk = rs!ELength
Case 2
vDimCk = rs!EHeight
Case 3
vDimCk = rs!EWidth
End Select
vSql1 = "insert into tbDimCk (DimCk) " & " vdimCk " & " "
DoCmd.RunSQL (vSql1)
vCnt = vCnt + 1
Loop