Results 1 to 3 of 3

Thread: Calling Fields!!

  1. #1

    Thread Starter
    Hyperactive Member Tequila_worm's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    344

    Calling Fields!!

    Well the problemt that i am having is i have a Field in my database called CdId,
    and two tables which are inner joined together have the same Field which is my Primary Key. So when i Inner Join them they would be such as

    Main.CdId
    Info.CdId

    so what i am doing is this

    VB Code:
    1. cboCdId.AddItem Adodc1.Recordset!Main.CdId

    but its giving me an error.

    It Highlights the .CdId with "Method or Data Member Not Found Error"

    Any suggetsion? or is there another way i cam call them instead of using !. Thx for you help

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Does the recordset have a Fields property. I am unfamiliar with data controls, but I assume that the recordset object is the same everywhere. If it has a Fields property, try...
    VB Code:
    1. cboCdId.AddItem Adodc1.Recordset.Fields("Main.CdId")

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member Tequila_worm's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    344
    That worked fine, thank you so much, you have helped me out so much thx again.



    Ed.

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