I am combining multiple databases into one. I need to read the properties of source field and duplicate them in the new database. I am having troubles reading the properties.
This with error at Set prpDP because apparently DecimalPlaces is not a property. Type will get set to 7.
I am looking for something that will tell me what all of the field properties are and how I can mimic them.
Dim strfield As String
Dim prpfield As Field
Dim prpType As Property
Dim prpDP As Property
Dim prpIM As Property
strfield = ors.Fields(t).Name
Set prpfield = ors.Fields(strfield)
Set prpType = prpfield.Properties("Type")
Set prpDP = prpfield.Properties("DecimalPlaces")
Set prpIM = prpfield.Properties("InputMask")
I use this to set properties in another app and DecimalPlaces is one so why can't I read a property as DecimalPlaces?
Set prpfield = OutTD.Fields("dblSize")
Set prop = prpfield.CreateProperty("DecimalPlaces", dbByte, 3)
prpfield.Properties.Append prop
Thanks
This with error at Set prpDP because apparently DecimalPlaces is not a property. Type will get set to 7.
I am looking for something that will tell me what all of the field properties are and how I can mimic them.
Dim strfield As String
Dim prpfield As Field
Dim prpType As Property
Dim prpDP As Property
Dim prpIM As Property
strfield = ors.Fields(t).Name
Set prpfield = ors.Fields(strfield)
Set prpType = prpfield.Properties("Type")
Set prpDP = prpfield.Properties("DecimalPlaces")
Set prpIM = prpfield.Properties("InputMask")
I use this to set properties in another app and DecimalPlaces is one so why can't I read a property as DecimalPlaces?
Set prpfield = OutTD.Fields("dblSize")
Set prop = prpfield.CreateProperty("DecimalPlaces", dbByte, 3)
prpfield.Properties.Append prop
Thanks