Hello All,
I am trying to copy an entire record into a new record. On the current form it works just fine however, the subform is where I am having the problem. Im trying to refer the code to the subform and it is not finding it. Here is a portion of it. I am really stuck on this......
	
	
	
		
Any Ideas??
Thanks
 I am trying to copy an entire record into a new record. On the current form it works just fine however, the subform is where I am having the problem. Im trying to refer the code to the subform and it is not finding it. Here is a portion of it. I am really stuck on this......
		Code:
	
	
	Private Sub Copybutton_Click()
        'Private Sub btnDuplicate_Click()
        Dim dbs As Database, Rst As Recordset
        Dim F As Form
        Dim scompany As String
        Dim ssSeqNumber As Long
        Set dbs = CurrentDb
        Set Rst = Me.RecordsetClone
        On Error GoTo Err_btnDuplicate_Click
       
        Me.Tag = Me![ProductID]
              scompany = "" & Me!Company
'This is where I having the problem??
              ssSeqNumber = "" & Me![RoutingSubform].Form![SequenceNumber]
With Rst
           .AddNew
              !Company = scompany
              ![RoutingSubform].Form![SequenceNumber] = ssSeqNumber
              
            .Update                     ' Save changes.
           .Move 0, .LastModified
        End With
        Me.Bookmark = Rst.Bookmark
	Any Ideas??
Thanks