hey... so I have a form with two subforms on it. in one sub form (A) I have a listing of records, what I want to have happen is that when the user dblClicks on one of the records in A, that record is add to the other subForm (B). Right now it just adds all the records from A to B, and I can't seem to figure out how to get this to work. the data in A isn't changable which is what I want, but I would like to be able to change data in the other form B. I think I can do it if I use a local table (and then dump it back to the server), but I haven't gotten that far yet. does this make any sense?
here's the code from subform A
Dim recsetClone As ADODB.recordSet
Dim varMark As Variant
'Stop
Set recsetClone = recordSet.Clone
varMark = Bookmark
recsetClone.Bookmark = varMark
Dim str As String
'str = Me.cmb_sorting.Text
Dim k, fin As Integer
str = "nothing happened"
fin = recsetClone.Fields.Count - 1
If Not (recsetClone.EOF And recsetClone.BOF) Then
'MsgBox ("recset open"
str = "cert_Data recordset count " & _ recsetClone.AbsolutePosition & " Data-> "
For k = 0 To fin
str = str & " " & recsetClone(k).Name & "= " &_ recsetClone(k)
Next
End If
MsgBox (str)
Set parent.Controls("B"
.Form.recordSet = &_ recsetClone.Bookmark
thanks
here's the code from subform A
Dim recsetClone As ADODB.recordSet
Dim varMark As Variant
'Stop
Set recsetClone = recordSet.Clone
varMark = Bookmark
recsetClone.Bookmark = varMark
Dim str As String
'str = Me.cmb_sorting.Text
Dim k, fin As Integer
str = "nothing happened"
fin = recsetClone.Fields.Count - 1
If Not (recsetClone.EOF And recsetClone.BOF) Then
'MsgBox ("recset open"
str = "cert_Data recordset count " & _ recsetClone.AbsolutePosition & " Data-> "
For k = 0 To fin
str = str & " " & recsetClone(k).Name & "= " &_ recsetClone(k)
Next
End If
MsgBox (str)
Set parent.Controls("B"
thanks