D
Duck
I am trying to add three rows to a table from one form. I want the
same field in the table to updated from only one of three controls on
the form (txtSource1, txtSource2, txtSource3) for each of the three
new records. Here is the code that's not working:
For intI = 1 To 3
With rstFunding
.AddNew
!ClientID = Me.txtClientID
!Source = intI
!Amt = Me.txtSource & intI
!StartDate = Me.txtStartDate
!EndDate = Me.txtEndDate
.Update
End With
Loop
I get an error stating "Method or Data Member not Found" with
'txtSource' highlighted
same field in the table to updated from only one of three controls on
the form (txtSource1, txtSource2, txtSource3) for each of the three
new records. Here is the code that's not working:
For intI = 1 To 3
With rstFunding
.AddNew
!ClientID = Me.txtClientID
!Source = intI
!Amt = Me.txtSource & intI
!StartDate = Me.txtStartDate
!EndDate = Me.txtEndDate
.Update
End With
Loop
I get an error stating "Method or Data Member not Found" with
'txtSource' highlighted