A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

amount field not showing currency format



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 04:21 AM posted to microsoft.public.access
babs
external usenet poster
 
Posts: 409
Default amount field not showing currency format

I have set the control source for an AMOUNT text box equal to below

=Cbodisposition.Column(2)

when i click off the control source in the property of the text box
it puts brackets around the name of the dropdown box and looks like this
=[cbodisposition].[column](2)

It is returning what is in the 3rd column - column(2) for code purposes -
which is the award amount based on the disposition selected in the combo box
cbodisposition but it is not showing the currency formatting that is set the
the table for the dropdown,which is also set to currency in the form view of
the text box [Amount] it appears left aligned LIKe text and not showing the
currency formatting that it should????

what is wrong?
Thanks,
Barb

  #2  
Old April 26th, 2010, 04:30 AM posted to microsoft.public.access
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default amount field not showing currency format

Set the Currency format in the Format property of the text box. If that
still isn't enough, change your expression to:

=CCur([cbodisposition].[column](2))

--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"babs" wrote in message
...
I have set the control source for an AMOUNT text box equal to below

=Cbodisposition.Column(2)

when i click off the control source in the property of the text box
it puts brackets around the name of the dropdown box and looks like this
=[cbodisposition].[column](2)

It is returning what is in the 3rd column - column(2) for code purposes -
which is the award amount based on the disposition selected in the combo
box
cbodisposition but it is not showing the currency formatting that is set
the
the table for the dropdown,which is also set to currency in the form view
of
the text box [Amount] it appears left aligned LIKe text and not showing
the
currency formatting that it should????

what is wrong?
Thanks,
Barb



  #3  
Old April 26th, 2010, 12:57 PM posted to microsoft.public.access
babs
external usenet poster
 
Posts: 409
Default amount field not showing currency format


Yes - I did format the property of the text box - not showing

used the =CCur([cbodisposition].[column](2)) and get =error#

any more ideas?

thanks,
Barb
"Arvin Meyer [MVP]" wrote:

Set the Currency format in the Format property of the text box. If that
still isn't enough, change your expression to:

=CCur([cbodisposition].[column](2))

--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"babs" wrote in message
...
I have set the control source for an AMOUNT text box equal to below

=Cbodisposition.Column(2)

when i click off the control source in the property of the text box
it puts brackets around the name of the dropdown box and looks like this
=[cbodisposition].[column](2)

It is returning what is in the 3rd column - column(2) for code purposes -
which is the award amount based on the disposition selected in the combo
box
cbodisposition but it is not showing the currency formatting that is set
the
the table for the dropdown,which is also set to currency in the form view
of
the text box [Amount] it appears left aligned LIKe text and not showing
the
currency formatting that it should????

what is wrong?
Thanks,
Barb



.

  #4  
Old April 26th, 2010, 03:16 PM posted to microsoft.public.access
John Spencer
external usenet poster
 
Posts: 7,815
Default amount field not showing currency format

CCur will fail if the value is not a number. Blank is not a number

Try

=CCur(Nz([cbodisposition].[column](2)))




John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

babs wrote:
Yes - I did format the property of the text box - not showing

used the =CCur([cbodisposition].[column](2)) and get =error#

any more ideas?

thanks,
Barb
"Arvin Meyer [MVP]" wrote:

Set the Currency format in the Format property of the text box. If that
still isn't enough, change your expression to:

=CCur([cbodisposition].[column](2))

--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"babs" wrote in message
...
I have set the control source for an AMOUNT text box equal to below

=Cbodisposition.Column(2)

when i click off the control source in the property of the text box
it puts brackets around the name of the dropdown box and looks like this
=[cbodisposition].[column](2)

It is returning what is in the 3rd column - column(2) for code purposes -
which is the award amount based on the disposition selected in the combo
box
cbodisposition but it is not showing the currency formatting that is set
the
the table for the dropdown,which is also set to currency in the form view
of
the text box [Amount] it appears left aligned LIKe text and not showing
the
currency formatting that it should????

what is wrong?
Thanks,
Barb


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.