i have the following code
Sub CUR()
'Update Currency for RFG
Dim strsqlCURa As String
Dim strsqlCURb As String
Dim rsCur As DAO.Recordset
Dim rsRows As Variant
Set rsCur = CurrentDb.OpenRecordset("SELECT SOBP, CUR from CURRFG;")
Do While Not rsCur.EOF
DoCmd.SetWarnings (False)
strsqlCURa = "Update " & rsCur!SOBP & " set Debits = Debits * " & rsCur!CUR & ";"
strsqlCURb = "Update " & rsCur!SOBP & " set Credits = Credits * " & rsCur!CUR & ";"
DoCmd.RunSQL strsqlCURa
DoCmd.RunSQL strsqlCURb
DoCmd.SetWarnings (True)
rsCur.MoveNext
Loop
End Sub
Debits are Currency, Standard, 2
Credits are Currency, Standard, 2
Debits and Credist must be Currence for other calculations to work..
Cur of CurRFG table is NUmber, single, general, 6
the calculation cannot be done. any suggestions?
Sub CUR()
'Update Currency for RFG
Dim strsqlCURa As String
Dim strsqlCURb As String
Dim rsCur As DAO.Recordset
Dim rsRows As Variant
Set rsCur = CurrentDb.OpenRecordset("SELECT SOBP, CUR from CURRFG;")
Do While Not rsCur.EOF
DoCmd.SetWarnings (False)
strsqlCURa = "Update " & rsCur!SOBP & " set Debits = Debits * " & rsCur!CUR & ";"
strsqlCURb = "Update " & rsCur!SOBP & " set Credits = Credits * " & rsCur!CUR & ";"
DoCmd.RunSQL strsqlCURa
DoCmd.RunSQL strsqlCURb
DoCmd.SetWarnings (True)
rsCur.MoveNext
Loop
End Sub
Debits are Currency, Standard, 2
Credits are Currency, Standard, 2
Debits and Credist must be Currence for other calculations to work..
Cur of CurRFG table is NUmber, single, general, 6
the calculation cannot be done. any suggestions?