I have an SQL statement that creates a table. There are some numeric fields that are translated as long integers (because they are zeroes) but I want them changed to double. Here is a sample of the code that I am trying to use (errors on red text):
[tt]
Call MakeDouble(tbl.Fields("Length"
)
…
…
Private Sub MakeDouble(fld As Field)
Dim prp As Property
Set prp = fld.CreateProperty("FieldSize", dbDouble)
[tt]fld.Properties.Append prp[tt]
Set fld = Nothing
Set prp = Nothing
End Sub
[/tt] [/color][/tt]
tia,
GGleason
[tt]
Call MakeDouble(tbl.Fields("Length"
…
…
Private Sub MakeDouble(fld As Field)
Dim prp As Property
Set prp = fld.CreateProperty("FieldSize", dbDouble)
[tt]fld.Properties.Append prp[tt]
Set fld = Nothing
Set prp = Nothing
End Sub
[/tt] [/color][/tt]
tia,
GGleason