Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing textbox's decimal places on report open

Status
Not open for further replies.

rstrong

Programmer
Jun 22, 2007
15
0
0
US
Hey,
I have an invoice report that I need to sometimes display currency to 3 decimal places but most of the time display 2 decimal places. I have the code to determine when 3 decimal places are needed and when 2 are but I am not sure how to change the textbox's format properties when the report opens. Any ideas? Thanks.
 
How about:

Code:
Private Sub Report_Open(Cancel As Integer)
Me.FieldX.Format = "$#,##0.000"
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top