Hi,
I'm trying to modify a table's field properties using ADO. I've seen examples using DAO, but I need to use ADO.
I've tried this:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dim rst As ADODB.Recordset
Dim fld As ADODB.Field
Set rst = New ADODB.Recordset
rst.Open "SouthBay", CurrentProject.Connection
Set fld = rst.Fields("DSCT_VALUE")
With fld
.Properties = adCurrency
End With
rst.Close
Set rst = Nothing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
But I'm getting an "invalid use of property" for the .properties = adCurrency line.
Can anyone help? Thanks.
I'm trying to modify a table's field properties using ADO. I've seen examples using DAO, but I need to use ADO.
I've tried this:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dim rst As ADODB.Recordset
Dim fld As ADODB.Field
Set rst = New ADODB.Recordset
rst.Open "SouthBay", CurrentProject.Connection
Set fld = rst.Fields("DSCT_VALUE")
With fld
.Properties = adCurrency
End With
rst.Close
Set rst = Nothing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
But I'm getting an "invalid use of property" for the .properties = adCurrency line.
Can anyone help? Thanks.