The code below gives no error. But it don't update the record like it is designed to? Any help I have used this type of code before adn its worked great.
Set rst = CurrentDb.OpenRecordset("SELECT * FROM [CreditFile] Where [CreditFile].[ProjectID]=" & Me.[ProjectID])
If Not IsNull(rst.[ProjectID]) Then
rst.Edit
rst![LastPaymentDate].Value = Me.PaymentDate ' Text Field
rst![LastPaymentAmount].Value = Me.PaymentAmount " Text Field
rst![CurrentBalance].Value = Me.BalanceDue 'Text Field
rst.Update
rst.Close
End If
Set rst = CurrentDb.OpenRecordset("SELECT * FROM [CreditFile] Where [CreditFile].[ProjectID]=" & Me.[ProjectID])
If Not IsNull(rst.[ProjectID]) Then
rst.Edit
rst![LastPaymentDate].Value = Me.PaymentDate ' Text Field
rst![LastPaymentAmount].Value = Me.PaymentAmount " Text Field
rst![CurrentBalance].Value = Me.BalanceDue 'Text Field
rst.Update
rst.Close
End If