G
gollum
Guest
I have an Access Database converted from '97 to 2000 where a text field can be entered as (E.g) 120+150+75 etc. Ihad some code that seemd to work in '97, but doesn't work in 2000, the information i.e the sum of the above is then entered into another field on the form, the original code is as follows:
Function SSum(X$)
Dim sum as integer
Dim V as integer
Dim y as String
sum=0
y=X$
while Len
>0
V=val
sum=sum+V
y=Mid$(y,(Len(V)+2))
Wend
SSum=Sum
End Function
I can see where the problem is (can only put in 2 digit numbers, e.g. 12+25+30)
I don't have enough knowledge to figure out how to create the sum.
Help
Thanks
Gollum
Function SSum(X$)
Dim sum as integer
Dim V as integer
Dim y as String
sum=0
y=X$
while Len
V=val
sum=sum+V
y=Mid$(y,(Len(V)+2))
Wend
SSum=Sum
End Function
I can see where the problem is (can only put in 2 digit numbers, e.g. 12+25+30)
I don't have enough knowledge to figure out how to create the sum.
Help
Thanks
Gollum