I have this function that updates a record. I can't get it to update 1 certain field, "SPR". It works fine when, a) after I close my application and re-open it, or b) when I substitute a hard value for the variable (aka, instead of SPRTemp, I use .5). Can anyone please take a look at this function and see what might be going wrong?

vb Code:
  1. Private Sub txtSPRDiscount_Change()
  2. Dim SPRTemp As Single ' for temporary storage of SPRDiscount
  3.  
  4.      lstProgram.Enabled = False
  5.     If txtSPRDiscount <> "" Then SPRTemp = rPlace(txtSPRDiscount)
  6.    
  7.     If Not IsNull(SPRTemp) Then
  8.         If IsNumeric(SPRTemp) Then
  9.             If SPRTemp > 0 And SPRTemp < 100 Then
  10.                 SPRChange = True
  11.                 SPR2 = Val(Replace(txtSPRDiscount, "%", "")) / 100
  12.                
  13.                 If Not performComputeData Then ' Compute Data based from the SPR input
  14.                     Debug.Print "Error Computing Data"
  15.                
  16.                 Else ' if there's no error lstProgram will be enabled and function performComputeData will be initiated
  17.                    
  18.                     SPRTemp = SPRTemp / 100
  19.                    
  20.                     performComputeData
  21.                  '---- Update out_03_DealConfigs  based from SPR changes ----
  22.                    
  23.                     performMoveData
  24.                    
  25.                     editSPRTruckNotes txtNumber, ModelID, currConfigID, _
  26.                     "SPR=" & SPRTemp & _
  27.                     ", DealerNet=" & FinalDealerNet & _
  28.                     ", FinalCost=" & FinalCost & _
  29.                     ", FinalCurrentCost=" & FinalCurrentCost & _
  30.                     ", FinalGoingToCost=" & FinalGoingToCost & _
  31.                     ", Margin=" & FinalMargin & _
  32.                     ", CurrentMargin=" & FinalCurrentMargin & _
  33.                     ", GoingToMargin=" & FinalGoingToMargin & _
  34.                     ", MarginPercent=" & AdjustMarginPercent & _
  35.                     ", CurrentMarginPercent=" & AdjustCurrentMarginPercent & _
  36.                     ", GoingToMarginPercent=" & AdjustGoingToMarginPercent
  37.  
  38.                  SPR2 = SPRTemp
  39.                  lstProgram.Enabled = True
  40.                  End If
  41.                  
  42.             Else
  43.                 txtSPR = 0
  44.                
  45.             End If
  46.         End If
  47.     End If
  48.     MsgBox Val(SPRTemp)
  49. End Sub
  50.  
  51. Function editSPRTruckNotes(ByVal DealNumber As String, ByVal ModelID As Long, _
  52.                     ByVal ConfigId As Long, ByVal editString As String)
  53.    
  54.  '---- Function that will edit SPR in out_03_DealConfigs -----
  55.     Dim rs As Recordset
  56.     Dim dbObj As New dbFunctions
  57.     Dim i As Integer
  58.     dbObj.dbProp = strConn
  59.     mSQL = "SELECT * FROM out_03_DealConfigs WHERE DealNo = '" & DealNumber & "' AND " & _
  60.            " ModelID = " & ModelID & " AND ConfigurationID = " & ConfigId
  61.     Set rs = dbObj.getRS(mSQL, isException, errDesc)
  62.     If isException = 0 Then
  63.         If Not rs.EOF Then
  64.             If Not dbObj.editRecord("out_03_DealConfigs", editString, "DealNo = '" & DealNumber & "' AND " & _
  65.            " ModelID = " & ModelID & " AND ConfigurationID = " & ConfigId, errDesc) Then
  66.                 Debug.Print "Error Editing SPR"
  67.             End If
  68.         End If
  69.     End If
  70.     Set rs = Nothing
  71.     Set dbObj = Nothing
  72. End Function