CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2000
    Posts
    200

    Can you designate a field as a KEY . . .

    with any of the tools in VB 6.0? I've played with the Data View & VisData, but cannot seem to designate a field as KEY. How? Or do you have to do this with Access app?

    Also, how do you get Database Diagrams to show up using Data View? I get Table & Views, but not Database Diagrams. (?)

    Would sure appreciate any comments or s****.

    Thanks,
    John


  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: Can you designate a field as a KEY . . .

    you need to use the tabledef object and reference an existing index or create a new one - then

    Set AuIdx = MyTd.CreateIndex("AuthorID")
    AuIdx.Primary = True
    AuIdx.Unique = True

    there are examples in Books On Line in help



  3. #3
    Join Date
    Sep 2000
    Posts
    200

    Re: Can you designate a field as a KEY . . .

    Thanks for your excellent response. In developing DB apps, do you think the Enterprise edition is necessary or worth the extra $?

    Thanks in advance for your opinion.
    John


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured