Property Not Found of DecimalPlaces (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


accessman -> Property Not Found of DecimalPlaces (6/20/2006 14:14:47)

Hi

I want to change the property setting of DecimalPlaces

Firstly,
I made the crosstab query,
then, I used SQL to create the new table as following code
CurrentDb.Execute "SELECT [qry2_crosstab].* INTO [New Table] FROM [qry2_Crosstab];"

Afterwards, I used the following codes to change the property setting, the Format is OK, but the decimalplaces is NOT working, it shows "Property Not Found"

Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim qd As TableDef
Dim str As String

Set db = CurrentDb
Set qd = db.TableDefs("New Table")

qd.fields("Total").Properties("Format") = "Percent"
qd.fields("Total").Properties("DecimalPlaces") = 5

What's wrong with it?

Please let me know, thanks.




yb2 -> RE: Property Not Found of DecimalPlaces (6/22/2006 6:23:18)

Where are you running this code?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875