大侠们, 我在vb6中创建了MDB数据库, 新增了表.
请问怎样为这个表设置一个自增(autoincrease)的字段(如 ID)呢?
多谢多谢!!

解决方案 »

  1.   

    在access中字段类型设置为自动编号
      

  2.   

    谢谢楼上帮忙, 可是我是想在vb中设置好字段属性, 而不是打开 access 设置.
    记得以前的版本有autoincreasefield 这样的属性, 但在vb6版本里不知道怎么用.
      

  3.   

    Create Table [LX](
        [自动编号] AutoIncrement Not null,
        [长整型] LONG null,
        [超级连接] Binary null,
        [单精度型] Single null,
        [货币] Currency null,
        [双精度型] Double null,
        [同步复制] GUID null,
        [小数] Numeric null,
        [字节] Bit null,
        [OLE对象] Image null
    )