Results 1 to 6 of 6

Thread: Find out data types maybe?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Fort Lauderdale, FL
    Posts
    98

    Find out data types maybe?

    OK, so I'm using this OpenSchema thing that I just found out about and love but now I'm trying to find out how I can determine the data type of a specific field.

    Can you do this through OpenSchema?

  2. #2
    Jethro
    Guest

    Question

    Whats OpenSchema?

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: Find out data types maybe?

    Originally posted by Criki
    OK, so I'm using this OpenSchema thing that I just found out about and love but now I'm trying to find out how I can determine the data type of a specific field.

    Can you do this through OpenSchema?
    You can do it in DAO, maybe in ADO, too. Since I don't have any ADO knowledge, I can't give opinion on that, but DAO has a property, Type, for the field object which can tell the data type of the field.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Fort Lauderdale, FL
    Posts
    98
    Unfortunately, I have no knowledge of DAO.

    Example of OpenSchema...

    Set rs = cn.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, "TABLE"))

    Returns all the Table Names in the database.

  5. #5
    Jethro
    Guest
    Well there you go, didn't know that Thanks Criki

    Honeybee is right though, In DAO you can extract all details from a recordset. We have this running on ourt major product, cause it hooks databases up to a data mining thing, and hence doesn't know what is in a table.

    I didn't write the code, just suggested that this would be a great function, but could get some one to send me the module or whatever that does it. Apparently is not too complicated, but is a bit undocumented by MS.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Fort Lauderdale, FL
    Posts
    98
    It was really just an extra bell to add in.
    Not to worry.

    But thank you both.

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