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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

property of a field

Status
Not open for further replies.
Mar 27, 2002
168
NL
Using Access2002
This problem broke down my head, I hope somebody can help me.
I have a report. In the details_format I have the following easy function:
If Me.ArtNrFabr < 4000 Then
Me.lblNettoprijs.Caption = &quot;Normuur:&quot;
Else
Me.lblNettoprijs.Caption = &quot;Nettoprijs:&quot;
End If

When the lbl is &quot;Normuur:&quot; then the property of field Nettoprijs must be #,### (a double with 3 dec.)
When the lbl is &quot;Nettoprijs:&quot; the property must be a money notation
 
You should be able to use something like this

If Me.ArtNrFabr < 4000 Then
Me.lblNettoprijs.Caption = &quot;Normuur:&quot;
Me.lblNettoprijs.Nettoprijs.Format = &quot;####.###&quot;
Else
Me.lblNettoprijs.Caption = &quot;Nettoprijs:&quot;
Me.lblNettoprijs.Nettoprijs.Format = &quot;Currency&quot;

End If

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top