Dim RS As DAO.Recordset
Set RS = CurrentDb.OpenRecordset("SELECT tbl_credits.recid, tbl_credits.entryby, tbl_credits.entrydt, tbl_credits.credit_type, tbl_credits.mdn, tbl_credits.account_number, tbl_credits.billing_system, tbl_credits.home_sid, tbl_credits.fraud_sids, tbl_credits.mtas_status, tbl_credits.h_to_r_auth, tbl_credits.calls_to, tbl_credits.detect_type, tbl_credits.detection_date, tbl_credits.worked_date, tbl_credits.esn_chg_date, tbl_credits.start_of_calls, tbl_credits.end_of_calls, tbl_credits.cycle_time, tbl_credits.action_taken, tbl_credits.action_taken_date, tbl_credits.credit_category, tbl_credits.credit_amount, tbl_credits.est_credit_amount, tbl_credits.credit_issued, tbl_credits.comments, tbl_credits.lead_approved_by, tbl_credits.lead_approved_date, tbl_credits.credit_issued_by, tbl_credits.credit_issued_date, tbl_credits.ad_approved_by, tbl_credits.ad_approved_date, tbl_credits.newrecord FROM tbl_credits WHERE (((tbl_credits.recid)=[forms]![f_credits]![txtrecid]));")
If Me.cbocreditcategory.Value = "$0 - $499" Then
RS.Edit
RS!lead_approved_by = fOSUserName()
RS!lead_approved_date = Now()
RS!newrecord = False
RS.Update
' msgbox credit complete
Else
RS.Edit
RS!lead_approved_by = fOSUserName()
RS!lead_approved_date = Now()
RS.Update
'Call email function to sups
End If
|