Thanks
--
Bill Nguyen - bi...@jaco.com
Jaco Oil Company
'***************** Code Start **********************
Function FieldProp(strtable As String, strField As String, _
strProp As String) As Variant
Dim lodb As Database
Dim lotab As TableDef
Dim loFld As Field
On Error GoTo FieldProp_err
Set lodb = CurrentDb
Set lotab = lodb.TableDefs(strtable)
Set loFld = lotab.Fields(strField)
FieldProp = loFld.Properties(strProp)
FieldProp_end:
Exit Function
FieldProp_err:
Select Case Err
Case 3265 'Item not found in this collection.
MsgBox "Cannot find the " & strField _
& " field or the " & strtable _
& " table", vbInformation
Case 3270 'Property not found.
MsgBox strProp & " is not a property of " _
& strField, vbInformation
Case Else
MsgBox Err & ": " & Err.Description
End Select
Resume FieldProp_end
End Function
'***************** Code End ************************
Bill Nguyen wrote in message ...
DecimalPlaces = rsTemp.Fields(i).Properties("decimalplaces").Value
You should be able to replace "decimalplaces" with the property you
need as long as you use the right name.
On Mon, 1 Jun 1998 17:20:49 -0700, "Bill Nguyen" <bi...@jaco.com>
wrote: