I need to have my Form update so it can list the next series of code. I do not know what the command to update is. Here is the code:
Private Sub CloseCB_Click()
Me.DateClosed = Date
Me.IsClosed = 1
-----------Update Code here------------
Dim MyDB As Database
Dim Rec As Recordset
Dim SQLString As String
SQLString = "SELECT tblChargeBack.StartDate, tblChargeBack.SequenceNumber, tblChargeBack.Amount, tblChargeBack.DateClosed, DateDiff('d',[StartDate],[DateClosed]) AS Elapsed, (IIf([Elapsed]=0,1,[Elapsed])*(0.06/365)*[Amount]*0.01) AS Interest FROM tblChargeBack"
Set MyDB = CurrentDb()
Set Rec = MyDB.OpenRecordset(SQLString, dbOpenSnapshot)
Me.InterestFee = Rec!Interest
End Sub
Thanks
Kenny
Private Sub CloseCB_Click()
Me.DateClosed = Date
Me.IsClosed = 1
-----------Update Code here------------
Dim MyDB As Database
Dim Rec As Recordset
Dim SQLString As String
SQLString = "SELECT tblChargeBack.StartDate, tblChargeBack.SequenceNumber, tblChargeBack.Amount, tblChargeBack.DateClosed, DateDiff('d',[StartDate],[DateClosed]) AS Elapsed, (IIf([Elapsed]=0,1,[Elapsed])*(0.06/365)*[Amount]*0.01) AS Interest FROM tblChargeBack"
Set MyDB = CurrentDb()
Set Rec = MyDB.OpenRecordset(SQLString, dbOpenSnapshot)
Me.InterestFee = Rec!Interest
End Sub
Thanks
Kenny