L
LisaInAz
Any suggestions are so greatly appreciated as I am really really stuck
Using Access 2003 on XP OS
My Access and VBA experience is limited.
I have a several fields that I am checking for validation as currency.
I have two questions
1) what is the best data type for currency. Currently I am using Table Data
Type = Number. (I have tried other types with no luck)
Field Size = Single Format=Currency. On the form I am formating to currency.
2) I want to be able to check for whole numbers and for those that are
entered with a decimal.
Currently I am using the below.
Private Sub OverUnder_AfterUpdate()
With Me.OverUnder
If Not IsNull(.Value) Then
If InStr([OverUnder], ".") = 0 Then
.Value = .Value / 100
End If
End If
End With
End Sub
However, when I type 45.00 it comes out as .45 When I type 4500 it comes out
as 45.00
I have tried to search on line. I just don't seem to be hitting the right
criteria.
Using Access 2003 on XP OS
My Access and VBA experience is limited.
I have a several fields that I am checking for validation as currency.
I have two questions
1) what is the best data type for currency. Currently I am using Table Data
Type = Number. (I have tried other types with no luck)
Field Size = Single Format=Currency. On the form I am formating to currency.
2) I want to be able to check for whole numbers and for those that are
entered with a decimal.
Currently I am using the below.
Private Sub OverUnder_AfterUpdate()
With Me.OverUnder
If Not IsNull(.Value) Then
If InStr([OverUnder], ".") = 0 Then
.Value = .Value / 100
End If
End If
End With
End Sub
However, when I type 45.00 it comes out as .45 When I type 4500 it comes out
as 45.00
I have tried to search on line. I just don't seem to be hitting the right
criteria.