Ok.. so ive been trying to convert a string to currency, but it seems its not working. Ive tried alot of workarounds, but still cant get it to work.
Dim tday As Date
Dim duedate1 As Date
Dim amount
Dim cur As Currency
Dim difference
tday = Date
duedate1 = [txtDueDate]
difference = Date - [txtDueDate]
If difference > 2 Then
amount = CStr(difference)
cur = CCur(amount * 2)
[PenApplied] = cur
Else
[PenApplied] = "Not applicable"
End If
Ive tried declaring "Cur" as string, ive tried directly using Ccur(Date - [txtDueDate]), ive tried loadsa stuff but still cant get it to work (as in display currency). The rest works ok
Thnx for ure help
Dim tday As Date
Dim duedate1 As Date
Dim amount
Dim cur As Currency
Dim difference
tday = Date
duedate1 = [txtDueDate]
difference = Date - [txtDueDate]
If difference > 2 Then
amount = CStr(difference)
cur = CCur(amount * 2)
[PenApplied] = cur
Else
[PenApplied] = "Not applicable"
End If
Ive tried declaring "Cur" as string, ive tried directly using Ccur(Date - [txtDueDate]), ive tried loadsa stuff but still cant get it to work (as in display currency). The rest works ok
Thnx for ure help