Code:
Private Sub SetBookText()
Dim iCounter As Integer
For iCounter = 0 To 6
'If the recordset is NOT empty then put it in the box
If rsBook(iCounter) <> "" Then
txtBook(iCounter).Text = rsBook(iCounter)
'Else the text box is set to blank
Else
txtBook(iCounter).Text = ""
End If
Next iCounter
End Sub Code:
Private Sub SetBookData()
'This function puts new data into the book table
Dim iCounter As Integer
For iCounter = 0 To 6
rsBook(iCounter) = txtBook(iCounter).Text
Next iCounter
End Sub Sorry - might be useful if I include the private functions it calls.