(...)
>>I am extracting data from external data base into a query. I have a field
>>for Catergory which pulls numbers 1,2,3. I need to change them to Roman
>>numbers I, II, III in order to work with my classification.
>>
>>I can't figure out a way to accomplish that in access 2003.
>>Can someone help?
>
> I found this from long, long ago... see if it works for you.
>
> Public Function Roman(ByVal intIn As Long) As String
> Dim Unit As Variant
> Dim Five As Variant
> Unit = Array("I", "X", "C", "M", "Xbar", "Cbar", "Mbar")
> Five = Array("", "V", "D", "L", "Vbar", "Dbar", "Lbar")
> Dim iDigit As Integer
(...)
Or You can set reference to MSOWCF.DLL library (commonly in C:\Program
Files\Microsoft Office\Office). Following code works then:
Function To_Roman(number) As String
Dim obj As MSOWCFLib.OCFunc
Set obj = New MSOWCFLib.OCFunc
To_Roman = obj.ROMAN(number)
Set obj = Nothing
End Function
(However this method is suitable to small numbers only.)
K.P.
www.access.vis.pl