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

Column Property of Combo Box



 
 
Thread Tools Display Modes
  #1  
Old March 13th, 2007, 11:39 AM posted to microsoft.public.access.forms
crtopher
external usenet poster
 
Posts: 42
Default Column Property of Combo Box

I am using the column property of a combo box, as in:

Me!txtYourDescriptionTextBox = Me!cboYourComboBox.Column(1)

to populate a series of text boxes with the other columns of the row source
of the combo box, then storing the data in another table. On of the columns
contains numbers (which are currency but don't have to be recorded as such)
that have 2 decimal places. Despite setting all the appropriate field formats
to Fixed and 2 decimals, the text box returns the value rounded up.

eg 28.27 returns as 28.00, 34.90 returns as 35.00

Can anyone help me with this. it would be most appreciated

Chris
  #2  
Old March 13th, 2007, 01:15 PM posted to microsoft.public.access.forms
Ofer Cohen
external usenet poster
 
Posts: 1,683
Default Column Property of Combo Box

Check the field that you store the value in, if it's Long or integer the
value will round when it stored.

If that the case, change the field type to double or single.

--
Good Luck
BS"D


"crtopher" wrote:

I am using the column property of a combo box, as in:

Me!txtYourDescriptionTextBox = Me!cboYourComboBox.Column(1)

to populate a series of text boxes with the other columns of the row source
of the combo box, then storing the data in another table. On of the columns
contains numbers (which are currency but don't have to be recorded as such)
that have 2 decimal places. Despite setting all the appropriate field formats
to Fixed and 2 decimals, the text box returns the value rounded up.

eg 28.27 returns as 28.00, 34.90 returns as 35.00

Can anyone help me with this. it would be most appreciated

Chris

  #3  
Old March 13th, 2007, 11:50 PM posted to microsoft.public.access.forms
crtopher
external usenet poster
 
Posts: 42
Default Column Property of Combo Box

Thanks for your response. I did try what you suggested and changed the field
type where the value is stored, without success. Anyway the problem seems to
happen before that...ie it is occurring on the form in the textxtbox that is
taking its value form the combo box column...i have set that format to
number, with two decimals, but still have the problem.

What do you think?

Cheers
Chris

"Ofer Cohen" wrote:

Check the field that you store the value in, if it's Long or integer the
value will round when it stored.

If that the case, change the field type to double or single.

--
Good Luck
BS"D


"crtopher" wrote:

I am using the column property of a combo box, as in:

Me!txtYourDescriptionTextBox = Me!cboYourComboBox.Column(1)

to populate a series of text boxes with the other columns of the row source
of the combo box, then storing the data in another table. On of the columns
contains numbers (which are currency but don't have to be recorded as such)
that have 2 decimal places. Despite setting all the appropriate field formats
to Fixed and 2 decimals, the text box returns the value rounded up.

eg 28.27 returns as 28.00, 34.90 returns as 35.00

Can anyone help me with this. it would be most appreciated

Chris

 




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 07:51 AM.


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