Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create mdb Primary Key VB6

Status
Not open for further replies.

gwar2k1

Programmer
Apr 17, 2003
387
GB
Hey, im not getting the .CreateIndex or .Execute commands that are mentioned in examples given to this question previously. Im referencing ADO Ext 2.5 for DDL and Security, ActiveX Data Objects 2.1 Library and DAO 2.5/3.1 Compatibility Library. Am I missing something?

With newTBL
With .Columns
.Append "Folder", adWChar
.Append "Barcode", adWChar
.Append "QTY", adInteger
End With
.Columns("Folder").Attributes = adColNullable
.Columns("Barcode").Attributes = adColNullable
.Columns("QTY").Attributes = adColNullable
'Set index = .createindex("Folder")
'index.Primary = True
'index.Unique = True
'.Indexes.Append index
End With

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top