K
KCobler
I have a form, with a combo box that pulls several values from another table.
Besides using it to populate one field "cbxBuilding", I use it to
automatically populate another field on the form "txtSF" (Square Feet). This
SF is an unbound text box.
No problem in getting the correct number. However, I seem to be unable to
format the value. I would like it in the Standard format (with a comma
separator for thousands). I will also have other cases where I just use a
text string, or a date, etc.
Here is my event code, which I have for Current and AfterUpdate events:
Private Sub cbxBuilding_AfterUpdate()
Me.tbxSF.Value = Me.cbxBuilding.Column(2)
'This assigns tbxSF with the value in column 2 that the combo list
obtains
End Sub
In summary, how do I get the code to format my value, too?
I am new to code. I appreciate very specific directions. Thank you.
(Using Access 2002.)
Besides using it to populate one field "cbxBuilding", I use it to
automatically populate another field on the form "txtSF" (Square Feet). This
SF is an unbound text box.
No problem in getting the correct number. However, I seem to be unable to
format the value. I would like it in the Standard format (with a comma
separator for thousands). I will also have other cases where I just use a
text string, or a date, etc.
Here is my event code, which I have for Current and AfterUpdate events:
Private Sub cbxBuilding_AfterUpdate()
Me.tbxSF.Value = Me.cbxBuilding.Column(2)
'This assigns tbxSF with the value in column 2 that the combo list
obtains
End Sub
In summary, how do I get the code to format my value, too?
I am new to code. I appreciate very specific directions. Thank you.
(Using Access 2002.)