M
Mike D
Private Sub Form_Open(Cancel As Integer)
Dim rs As New ADODB.recordset
rs.Open "tblcase", CurrentProject.Connection
Dim rowarray As Variant
rowarray = rs.GetRows(rs.RecordCount)
rs.Close
Me.txt1 = rowarray("fieldname from table")
End Sub
I need the textbox txt1 filled from a value in the array
Dim rs As New ADODB.recordset
rs.Open "tblcase", CurrentProject.Connection
Dim rowarray As Variant
rowarray = rs.GetRows(rs.RecordCount)
rs.Close
Me.txt1 = rowarray("fieldname from table")
End Sub
I need the textbox txt1 filled from a value in the array