Column Property of Combo Box

G

Guest

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
 
G

Guest

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top