This is a long one, but it works. Copy the following two functions, and put them in a module. These will convert any value from .01 cents to 999 billion dollars into the approprate text. <br><br>To use it, simply add this to an event (On Lost Focus, Button Click, etc.)<br><br>Me!FieldName = GetDollarSpelling(Me!CurrencyField)<br><br>Hope this helps. If you have trouble getting it to work, let me know.<br><br><br>----------<br><br>Function GetDollarSpelling(dblValue As Double) As String<br> Dim centspot As Integer, dollarlen As Integer<br> Dim dollars As Double, cents As Integer<br> Dim hundreds As Integer, thousands As Integer<br> Dim millions As Integer, billions As Integer<br> Dim centtext As String, huntext As String, thoutext As String<br> Dim milltext As String, billtext As String, temptext As String<br> <br> If dblValue < 0.01 Then<br> temptext = "Zero"<br> Else<br> centspot = InStr(dblValue, "."

<br> If centspot > 0 Then<br> cents = Right(dblValue, 2)<br> dollars = Left(dblValue, centspot - 1)<br> Else<br> cents = 0<br> dollars = dblValue<br> End If<br> <br> dollarlen = Len(CStr(dollars))<br> <br> If dollarlen > 0 Then<br> Select Case dollars<br> Case 1 To 999<br> Select Case dollars<br> Case 1 To 9<br> hundreds = Right(dollars, 1)<br> Case 10 To 99<br> hundreds = Right(dollars, 2)<br> Case 100 To 999<br> hundreds = Right(dollars, 3)<br> End Select<br> Case 1000 To 999999<br> hundreds = Right(dollars, 3)<br> Select Case dollars<br> Case 1000 To 9999<br> thousands = Left(dollars, 1)<br> Case 10000 To 99999<br> thousands = Left(dollars, 2)<br> Case 100000 To 999999<br> thousands = Left(dollars, 3)<br> End Select<br> Case 1000000 To 999999999<br> hundreds = Right(dollars, 3)<br> thousands = Mid(dollars, (dollarlen - 5), 3)<br> Select Case dollars<br> Case 1000000 To 9999999<br> millions = Left(dollars, 1)<br> Case 10000000 To 99999999<br> millions = Left(dollars, 2)<br> Case 100000000 To 999999999<br> millions = Left(dollars, 3)<br> End Select<br> Case 1000000000 To 999999999999#<br> hundreds = Right(dollars, 3)<br> thousands = Mid(dollars, (dollarlen - 5), 3)<br> millions = Mid(dollars, (dollarlen - 8), 3)<br> Select Case dollars<br> Case 1000000000 To 9999999999#<br> billions = Left(dollars, 1)<br> Case 10000000000# To 99999999999#<br> billions = Left(dollars, 2)<br> Case 100000000000# To 999999999999#<br> billions = Left(dollars, 3)<br> End Select<br> End Select<br> End If<br> <br> If cents > 0 Then centtext = GetDollarString("cents", cents)<br> If hundreds > 0 Then huntext = GetDollarString("hundreds", hundreds)<br> If thousands > 0 Then thoutext = GetDollarString("thousands", thousands)<br> If millions > 0 Then milltext = GetDollarString("millions", millions)<br> If billions > 0 Then billtext = GetDollarString("billions", billions)<br> <br> If billtext = "" Then<br> If milltext = "" Then<br> If thoutext = "" Then<br> If huntext = "" Then<br> temptext = centtext<br> Else<br> temptext = huntext & " Dollars and" & centtext<br> End If<br> Else<br> temptext = thoutext & " " & huntext & " Dollars and" & centtext<br> End If<br> Else<br> temptext = milltext & " " & thoutext & " " & huntext & " Dollars and" & centtext<br> End If<br> Else<br> temptext = billtext & " " & milltext & " " & thoutext & " " & huntext & " Dollars and" & centtext<br> End If<br> End If<br> <br> If Right(temptext, 1) = "d" Then temptext = Left(temptext, Len(temptext) - 4)<br> GetDollarSpelling = temptext<br>End Function<br><br>Function GetDollarString(strPart As String, intPart As Integer) As String<br> Dim strDollars As String<br> <br> If intPart > 99 Then<br> Select Case Mid(intPart, 1, 1)<br> Case 1: strDollars = "One Hundred"<br> Case 2: strDollars = "Two Hundred"<br> Case 3: strDollars = "Three Hundred"<br> Case 4: strDollars = "Four Hundred"<br> Case 5: strDollars = "Five Hundred"<br> Case 6: strDollars = "Six Hundred"<br> Case 7: strDollars = "Seven Hundred"<br> Case 8: strDollars = "Eight Hundred"<br> Case 9: strDollars = "Nine Hundred"<br> End Select<br> End If<br> <br> If strPart = "Cents" Then<br> If intPart < 10 Then<br> Select Case intPart<br> Case 1: strDollars = strDollars & " One"<br> Case 2: strDollars = strDollars & " Two"<br> Case 3: strDollars = strDollars & " Three"<br> Case 4: strDollars = strDollars & " Four"<br> Case 5: strDollars = strDollars & " Five"<br> Case 6: strDollars = strDollars & " Six"<br> Case 7: strDollars = strDollars & " Seven"<br> Case 8: strDollars = strDollars & " Eight"<br> Case 9: strDollars = strDollars & " Nine"<br> End Select<br> GoTo ConstructString<br> End If<br> End If<br> <br> Select Case Right(intPart, 2)<br> Case 1: strDollars = strDollars & " One"<br> Case 2: strDollars = strDollars & " Two"<br> Case 3: strDollars = strDollars & " Three"<br> Case 4: strDollars = strDollars & " Four"<br> Case 5: strDollars = strDollars & " Five"<br> Case 6: strDollars = strDollars & " Six"<br> Case 7: strDollars = strDollars & " Seven"<br> Case 8: strDollars = strDollars & " Eight"<br> Case 9: strDollars = strDollars & " Nine"<br> Case 10: strDollars = strDollars & " Ten"<br> Case 11: strDollars = strDollars & " Eleven"<br> Case 12: strDollars = strDollars & " Twelve"<br> Case 13: strDollars = strDollars & " Thirteen"<br> Case 14: strDollars = strDollars & " Fourteen"<br> Case 15: strDollars = strDollars & " Fifteen"<br> Case 16: strDollars = strDollars & " Sixteen"<br> Case 17: strDollars = strDollars & " Seventeen"<br> Case 18: strDollars = strDollars & " Eighteen"<br> Case 19: strDollars = strDollars & " Nineteen"<br> Case 20: strDollars = strDollars & " Twenty"<br> Case 21: strDollars = strDollars & " Twenty One"<br> Case 22: strDollars = strDollars & " Twenty Two"<br> Case 23: strDollars = strDollars & " Twenty Three"<br> Case 24: strDollars = strDollars & " Twenty Four"<br> Case 25: strDollars = strDollars & " Twenty Five"<br> Case 26: strDollars = strDollars & " Twenty Six"<br> Case 27: strDollars = strDollars & " Twenty Seven"<br> Case 28: strDollars = strDollars & " Twenty Eight"<br> Case 29: strDollars = strDollars & " Twenty Nine"<br> Case 30: strDollars = strDollars & " Thirty"<br> Case 31: strDollars = strDollars & " Thirty One"<br> Case 32: strDollars = strDollars & " Thirty Two"<br> Case 33: strDollars = strDollars & " Thirty Three"<br> Case 34: strDollars = strDollars & " Thirty Four"<br> Case 35: strDollars = strDollars & " Thirty Five"<br> Case 36: strDollars = strDollars & " Thirty Six"<br> Case 37: strDollars = strDollars & " Thirty Seven"<br> Case 38: strDollars = strDollars & " Thirty Eight"<br> Case 39: strDollars = strDollars & " Thirty Nine"<br> Case 40: strDollars = strDollars & " Fourty"<br> Case 41: strDollars = strDollars & " Fourty One"<br> Case 42: strDollars = strDollars & " Fourty Two"<br> Case 43: strDollars = strDollars & " Fourty Three"<br> Case 44: strDollars = strDollars & " Fourty Four"<br> Case 45: strDollars = strDollars & " Fourty Five"<br> Case 46: strDollars = strDollars & " Fourty Six"<br> Case 47: strDollars = strDollars & " Fourty Seven"<br> Case 48: strDollars = strDollars & " Fourty Eight"<br> Case 49: strDollars = strDollars & " Fourty Nine"<br> Case 50: strDollars = strDollars & " Fifty"<br> Case 51: strDollars = strDollars & " Fifty One"<br> Case 52: strDollars = strDollars & " Fifty Two"<br> Case 53: strDollars = strDollars & " Fifty Three"<br> Case 54: strDollars = strDollars & " Fifty Four"<br> Case 55: strDollars = strDollars & " Fifty Five"<br> Case 56: strDollars = strDollars & " Fifty Six"<br> Case 57: strDollars = strDollars & " Fifty Seven"<br> Case 58: strDollars = strDollars & " Fifty Eight"<br> Case 59: strDollars = strDollars & " Fifty Nine"<br> Case 60: strDollars = strDollars & " Sixty"<br> Case 61: strDollars = strDollars & " Sixty One"<br> Case 62: strDollars = strDollars & " Sixty Two"<br> Case 63: strDollars = strDollars & " Sixty Three"<br> Case 64: strDollars = strDollars & " Sixty Four"<br> Case 65: strDollars = strDollars & " Sixty Five"<br> Case 66: strDollars = strDollars & " Sixty Six"<br> Case 67: strDollars = strDollars & " Sixty Seven"<br> Case 68: strDollars = strDollars & " Sixty Eight"<br> Case 69: strDollars = strDollars & " Sixty Nine"<br> Case 70: strDollars = strDollars & " Seventy"<br> Case 71: strDollars = strDollars & " Seventy One"<br> Case 72: strDollars = strDollars & " Seventy Two"<br> Case 73: strDollars = strDollars & " Seventy Three"<br> Case 74: strDollars = strDollars & " Seventy Four"<br> Case 75: strDollars = strDollars & " Seventy Five"<br> Case 76: strDollars = strDollars & " Seventy Six"<br> Case 77: strDollars = strDollars & " Seventy Seven"<br> Case 78: strDollars = strDollars & " Seventy Eight"<br> Case 79: strDollars = strDollars & " Seventy Nine"<br> Case 80: strDollars = strDollars & " Eighty"<br> Case 81: strDollars = strDollars & " Eighty One"<br> Case 82: strDollars = strDollars & " Eighty Two"<br> Case 83: strDollars = strDollars & " Eighty Three"<br> Case 84: strDollars = strDollars & " Eighty Four"<br> Case 85: strDollars = strDollars & " Eighty Five"<br> Case 86: strDollars = strDollars & " Eighty Six"<br> Case 87: strDollars = strDollars & " Eighty Seven"<br> Case 88: strDollars = strDollars & " Eighty Eight"<br> Case 89: strDollars = strDollars & " Eighty Nine"<br> Case 90: strDollars = strDollars & " Ninety"<br> Case 91: strDollars = strDollars & " Ninety One"<br> Case 92: strDollars = strDollars & " Ninety Two"<br> Case 93: strDollars = strDollars & " Ninety Three"<br> Case 94: strDollars = strDollars & " Ninety Four"<br> Case 95: strDollars = strDollars & " Ninety Five"<br> Case 96: strDollars = strDollars & " Ninety Six"<br> Case 97: strDollars = strDollars & " Ninety Seven"<br> Case 98: strDollars = strDollars & " Ninety Eight"<br> Case 99: strDollars = strDollars & " Ninety Nine"<br> End Select<br> <br>ConstructString:<br> Select Case strPart<br> Case "cents"<br> GetDollarString = strDollars & " Cents"<br> Case "hundreds"<br> GetDollarString = strDollars<br> Case "thousands"<br> GetDollarString = strDollars & " Thousand"<br> Case "millions"<br> GetDollarString = strDollars & " Million"<br> Case "billions"<br> GetDollarString = strDollars & " Billion"<br> End Select<br>End Function<br> <p>Jim Lunde<br><a href=mailto:compugeeks@hotmail.com>compugeeks@hotmail.com</a><br><a href=
Application Development