Here is what I put in...this is on the Click()
Dim start, lot, strSQL As String
Dim rst As ADODB.Recordset
Dim rst2 As ADODB.Recordset
start = TxtStart
lot = TxtLot
strSQL = "SELECT * FROM Master WHERE Master.LotNumber = " & lot & ""
Set rst = New ADODB.Recordset
rst.Open strSQL, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If (Not rst.EOF) Then
strSQL = "UPDATE Master SET StartDate = '" & start & "'"
Set rst2 = New ADODB.Recordset
rst2.Open strSQL, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
End If
rst.Close
It crashed on the rst2.Open....line.
What do you think?