J
John Milward
Hi
I am trying to set a number format according to the contents of each line of
detail in a report. This is to set the number of decimal places printed on
the report..
I have code in the Detail 'On Print' event that takes the numbers and
attempts to format them.
I keep getting a "Type Mismatch" error at the format function and cannot see
why.
I have eventually by-passed all my data and still get the error with this
code;--
Dim MyString as string
MyString = Format(334.9, "###0.00")
Since this is pasted straight from access help I can't believe it doesn't
work.
I must be doing somethibg totaly stupid!
Any ideas would be appreciated
TIA
John
I am trying to set a number format according to the contents of each line of
detail in a report. This is to set the number of decimal places printed on
the report..
I have code in the Detail 'On Print' event that takes the numbers and
attempts to format them.
I keep getting a "Type Mismatch" error at the format function and cannot see
why.
I have eventually by-passed all my data and still get the error with this
code;--
Dim MyString as string
MyString = Format(334.9, "###0.00")
Since this is pasted straight from access help I can't believe it doesn't
work.
I must be doing somethibg totaly stupid!
Any ideas would be appreciated
TIA
John