Use a unique number (the rowno) that you call for example Id_no. This Id_no can be used to search on (since it is unique). When you are on a form and want to change something we search on a row in column A for this unique number. When found, we select the whole row. When you change something, you could say something like
ActiveCell.EntireRow.Cells(1, 1).Value = textbox1.Value
ActiveCell.EntireRow.Cells(1, 2).Value = textbox2.Value
ActiveCell.EntireRow.Cells(1, 3).Value = textbox3.Value[/VBA]
To search a value (id_no) you could use this :[VBA]
Dim Result As Variant
Dim Lookvalue As Long
Result = Empty
'xllastrow = function to look for last row
With ActiveSheet.Range("a1:a" & xlLastRow)
Lookvalue = TextBox1.Value 'value to look for
Set Result = .Find(What:=Lookvalue, LookIn:=xlValues)
If Not Result Is Nothing Then Result.Rows.EntireRow.Select Else Exit Sub
End With
'form to change the values in the row you just found
Row_found_that_we_want_to_change.Show
Charlize