you will need to set the vSrcTabl name and tTargTbl
Code:
'normalize the sourc tbl by appending 1 field at a time
Public Function NormalizeTbl()
'vSrcTbl = the table to normalize
'iStartFld = starting col# of the fields to append 1 at a time
Dim fld As Field
Dim sTxt As String
Dim vSrcTbl
Dim rst
Dim tdf As TableDef
Dim iStartFld As Integer, iFldCnt As Integer, f As Integer
iStartFld = 3 'append starting at field# 3
vSrcTbl = "table"
Set tdf = CurrentDb.TableDefs(vSrcTbl)
f = 1
DoCmd.SetWarnings False
For Each fld In tdf.Fields
If f >= iStartFld Then
sSql = "insert into tTargTbl (Budget, Role, MON) SELECT [Budget],[Role], [" & fld.Name & "] from " & vSrcTbl
DoCmd.RunSQL sSql
End If
f = f + 1
Next
DoCmd.SetWarnings True
Set rst = Nothing
Set fld = Nothing
End Function