Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert to uppercase

Status
Not open for further replies.

tekila

Programmer
Apr 18, 2002
150
SG
To convert values entered in a combobox to uppercase, this was the code I used:

Me!Code = UCase(Me!Code)

The desired result was implemented in the control source (field in underlying table), but the row source of the combobox of another form that is this field in the underlying table was not converted to uppercase.

How do I solve this?

 
Hi,
Try placing a > in the format line of your combo box, also works in any table or form.
Jim
 
Create query for combobox rowsource by using function UCase():

Example:
me.cboCombo.rowsource="Select ID, Ucase(FirstName) as FN From MyTable;"

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top