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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Currency format won't show in form



 
 
Thread Tools Display Modes
  #1  
Old August 11th, 2009, 01:28 PM posted to microsoft.public.access.gettingstarted
Mishanya
external usenet poster
 
Posts: 197
Default Currency format won't show in form

In my form I have combo cboRoom based on query wich takes room' properties
(ID, type, price) from tblRoom. The combo shows RoomType property.
I defined the next textbox' control-source as =cboRoom.column(2) so it shows
the room' price.
In the tblRoom the Price field is defined as currency in both Type and
Format properties and so it comes out in the table ($100 for example).
Yet in my form I only get the number 100 with no currency format ($ sign).
I suppose it happens due to the control-source definition wich somehow can't
"draw" the field format property.
What should be done?
  #2  
Old August 11th, 2009, 01:52 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Currency format won't show in form

Try using

=CCur(cboRoom.column(2))

or

=Format(cboRoom.column(2), "Currency")

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mishanya" wrote in message
...
In my form I have combo cboRoom based on query wich takes room' properties
(ID, type, price) from tblRoom. The combo shows RoomType property.
I defined the next textbox' control-source as =cboRoom.column(2) so it
shows
the room' price.
In the tblRoom the Price field is defined as currency in both Type and
Format properties and so it comes out in the table ($100 for example).
Yet in my form I only get the number 100 with no currency format ($ sign).
I suppose it happens due to the control-source definition wich somehow
can't
"draw" the field format property.
What should be done?



  #3  
Old August 11th, 2009, 05:51 PM posted to microsoft.public.access.gettingstarted
Mishanya
external usenet poster
 
Posts: 197
Default Currency format won't show in form

Hi Douglas
=CCur(cboRoom.column(2))
did the job alright.
Can You explain, for the general knowledge,why does it require additional
formatting, if the value is already formatted in the table? Does it have to
be?

Thanks, Misha.

"Douglas J. Steele" wrote:

Try using

=CCur(cboRoom.column(2))

or

=Format(cboRoom.column(2), "Currency")

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mishanya" wrote in message
...
In my form I have combo cboRoom based on query wich takes room' properties
(ID, type, price) from tblRoom. The combo shows RoomType property.
I defined the next textbox' control-source as =cboRoom.column(2) so it
shows
the room' price.
In the tblRoom the Price field is defined as currency in both Type and
Format properties and so it comes out in the table ($100 for example).
Yet in my form I only get the number 100 with no currency format ($ sign).
I suppose it happens due to the control-source definition wich somehow
can't
"draw" the field format property.
What should be done?




  #4  
Old August 11th, 2009, 07:25 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Currency format won't show in form

There's a difference between how a value's stored and how it's formatted. As
far as I remember, when you refer to the element in the combo box, you're
only getting the reference to its value, not its format.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mishanya" wrote in message
...
Hi Douglas
=CCur(cboRoom.column(2))
did the job alright.
Can You explain, for the general knowledge,why does it require additional
formatting, if the value is already formatted in the table? Does it have
to
be?

Thanks, Misha.

"Douglas J. Steele" wrote:

Try using

=CCur(cboRoom.column(2))

or

=Format(cboRoom.column(2), "Currency")

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mishanya" wrote in message
...
In my form I have combo cboRoom based on query wich takes room'
properties
(ID, type, price) from tblRoom. The combo shows RoomType property.
I defined the next textbox' control-source as =cboRoom.column(2) so it
shows
the room' price.
In the tblRoom the Price field is defined as currency in both Type and
Format properties and so it comes out in the table ($100 for example).
Yet in my form I only get the number 100 with no currency format ($
sign).
I suppose it happens due to the control-source definition wich somehow
can't
"draw" the field format property.
What should be done?






  #5  
Old August 11th, 2009, 07:33 PM posted to microsoft.public.access.gettingstarted
Mishanya
external usenet poster
 
Posts: 197
Default Currency format won't show in form

thank You

"Douglas J. Steele" wrote:

There's a difference between how a value's stored and how it's formatted. As
far as I remember, when you refer to the element in the combo box, you're
only getting the reference to its value, not its format.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mishanya" wrote in message
...
Hi Douglas
=CCur(cboRoom.column(2))
did the job alright.
Can You explain, for the general knowledge,why does it require additional
formatting, if the value is already formatted in the table? Does it have
to
be?

Thanks, Misha.

"Douglas J. Steele" wrote:

Try using

=CCur(cboRoom.column(2))

or

=Format(cboRoom.column(2), "Currency")

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mishanya" wrote in message
...
In my form I have combo cboRoom based on query wich takes room'
properties
(ID, type, price) from tblRoom. The combo shows RoomType property.
I defined the next textbox' control-source as =cboRoom.column(2) so it
shows
the room' price.
In the tblRoom the Price field is defined as currency in both Type and
Format properties and so it comes out in the table ($100 for example).
Yet in my form I only get the number 100 with no currency format ($
sign).
I suppose it happens due to the control-source definition wich somehow
can't
"draw" the field format property.
What should be done?






 




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 03:57 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.