W
Wahab
Hi
Please help me to change the property .
I have created table by code which is as follow:
Set tbl = New ADOX.Table
With tbl
tbl.Name = strTable
With .Columns
.Append "TrnDate", adDate
.Append "TrnType", adInteger
.Append "RefNo", adInteger
.Append "CustomerID", adInteger
.Append "Details", adWChar, 50
.Append "Balance", adCurrency
With idx
.Name = "Primary"
.IndexNulls = adIndexNullsDisallow
.Columns.Append "RefNo"
.Columns.Append "CustomerID"
.PrimaryKey = True
.IndexNulls = adIndexNullsDisallow
.PrimaryKey = True
End With
tbl.Indexes.Append idx
End With
cat.Tables.Append tbl
Set cat = Nothing
End With
End Sub
when it creates table by default all property fields are coming requred Yes .
How I will change the property of each field?
Please help me to change the property .
I have created table by code which is as follow:
Set tbl = New ADOX.Table
With tbl
tbl.Name = strTable
With .Columns
.Append "TrnDate", adDate
.Append "TrnType", adInteger
.Append "RefNo", adInteger
.Append "CustomerID", adInteger
.Append "Details", adWChar, 50
.Append "Balance", adCurrency
With idx
.Name = "Primary"
.IndexNulls = adIndexNullsDisallow
.Columns.Append "RefNo"
.Columns.Append "CustomerID"
.PrimaryKey = True
.IndexNulls = adIndexNullsDisallow
.PrimaryKey = True
End With
tbl.Indexes.Append idx
End With
cat.Tables.Append tbl
Set cat = Nothing
End With
End Sub
when it creates table by default all property fields are coming requred Yes .
How I will change the property of each field?