I GOT IT WORKING!!!!
thanks to all
i'll paste my code incase your wondering what i did..
and i know ..i gotta clean it up
Dim A1 As String
Dim B1 As String
Dim C1 As String
Dim D1 As String
Dim E1 As Date
Dim num As Double
Dim X As String
Dim x2 As String
If Len(Me.Deal_Ticket_Number & "") = 0 Then
If Len(Me.Version & "") = 0 Then
X = MsgBox("You have not successfully completed the form. Please review", 48, "Amendment Failed")
End If
End If
If Len(Me.Deal_Ticket_Number & "") <> 0 Then
If Len(Me.Version & "") <> 0 Then
Dim reccount As Integer
Dim temp As Integer
temp = 0
reccount = Forms![PPFT Form]![Site IDs subform]![recnumber]
Me.Site_IDs_subform.SetFocus
DoCmd.DoMenuItem A_FORMBAR, A_RECORDSMENU, 1, 0, acMenuVer20
While reccount <> temp
If Len(Forms![PPFT Form]![Site IDs subform]![Site ID] & "") <> 0 Then
A1 = A1 + Forms![PPFT Form]![Site IDs subform]![Site ID]
End If
If Len(Forms![PPFT Form]![Site IDs subform]![Date Added] & "") <> 0 Then
D1 = D1 + Forms![PPFT Form]![Site IDs subform]![Date Added]
End If
Me.Site_IDs_subform.SetFocus
DoCmd.DoMenuItem A_FORMBAR, A_RECORDSMENU, 1, 2, acMenuVer20
temp = temp + 1
Wend
Me.Account_Setup.SetFocus
On Error GoTo Err_Command221_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
DoCmd.GoToRecord , , acLast
Forms![PPFT Form]![Site IDs subform]![Deal Ticket Number] = Me.Deal_Ticket_Number
Forms![PPFT Form]![Site IDs subform]![Version] = Me.Version
Dim temp2 As Double
Dim lDiff As Long
lDiff = 13
Dim temp5 As Long
Dim diff2 As Long
diff2 = 10
Dim temp6
Me.Site_IDs_subform.SetFocus
DoCmd.DoMenuItem A_FORMBAR, A_RECORDSMENU, 1, 0, acMenuVer20
While num <> reccount
If Len(A1 & "") > 0 Then
Forms![PPFT Form]![Site IDs subform]![Site ID] = Mid$(A1, (temp5 * lDiff) + 1, lDiff)
temp5 = temp5 + 1
End If
If Len(D1 & "") > 0 Then
Forms![PPFT Form]![Site IDs subform]![Date Added] = Mid$(D1, (temp6 * diff2) + 1, diff2)
temp6 = temp6 + 1
End If
num = num + 1
Me.Site_IDs_subform.SetFocus
DoCmd.DoMenuItem A_FORMBAR, A_RECORDSMENU, 1, 2, acMenuVer20
Wend
Exit_Command221_Click:
Exit Sub
Err_Command221_Click:
MsgBox Err.Description
Resume Exit_Command221_Click
End If
End If
End Sub