I am defining a recordset like this
Set rstDG = New ADODB.Recordset
rstDG.Fields.Append "Id", adDouble
rstDG.Fields.Append "GoodsName", adVarChar, 255
rstDG.Fields.Append "GoodsId", adDouble
rstDG.Fields.Append "TypDesig", adVarChar, 255
rstDG.Fields.Append "TypeId", adDouble
rstDG.Fields.Append "TechCode", adVarChar, 255
rstDG.Fields.Append "TechId", adDouble
rstDG.Fields.Append "PLDId", adVarChar, 255, , "0"
rstDG.Open
but it gives me this error on line "rstDG.Fields.Append "PLDId", adVarChar, 255, , "0"
"
arguments are the wrong type, or out of acceptable range or in conflict with one another
i want the Field PLDId has a default value of "0", what is wrong with it?
Set rstDG = New ADODB.Recordset
rstDG.Fields.Append "Id", adDouble
rstDG.Fields.Append "GoodsName", adVarChar, 255
rstDG.Fields.Append "GoodsId", adDouble
rstDG.Fields.Append "TypDesig", adVarChar, 255
rstDG.Fields.Append "TypeId", adDouble
rstDG.Fields.Append "TechCode", adVarChar, 255
rstDG.Fields.Append "TechId", adDouble
rstDG.Fields.Append "PLDId", adVarChar, 255, , "0"
rstDG.Open
but it gives me this error on line "rstDG.Fields.Append "PLDId", adVarChar, 255, , "0"
"
arguments are the wrong type, or out of acceptable range or in conflict with one another
i want the Field PLDId has a default value of "0", what is wrong with it?