Wonder if someone can help me with this problem.
I've got a form with text boxes to create a percentage out of records that have a numeric field.
there are text boxes that allow the user to select a currency band i.e £0.00-£50,000.00 etc and then hit a command button which will show the percentage of records that within this band.
This is the code:
If Not IsNull(Me.txtMin) And Not IsNull(Me.txtMax) Then
Me.txtPerc = (DCount("*", "qryPercentage") / Me.txtTotal) * 100 & "%"
End If
on top of the two text boxes I have another that the user can add the year the wish to use as criteria to search apon.
If I select higher than say, the year 2010 I get a 'runtime 6 overflow'
Is there anything I can do to prevent this?
Thanks for anyhelp
I've got a form with text boxes to create a percentage out of records that have a numeric field.
there are text boxes that allow the user to select a currency band i.e £0.00-£50,000.00 etc and then hit a command button which will show the percentage of records that within this band.
This is the code:
If Not IsNull(Me.txtMin) And Not IsNull(Me.txtMax) Then
Me.txtPerc = (DCount("*", "qryPercentage") / Me.txtTotal) * 100 & "%"
End If
on top of the two text boxes I have another that the user can add the year the wish to use as criteria to search apon.
If I select higher than say, the year 2010 I get a 'runtime 6 overflow'
Is there anything I can do to prevent this?
Thanks for anyhelp