Results 1 to 3 of 3

Thread: Reading data type of database field

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455

    Post

    VB5:

    Hi vb progs,

    To fill in information in my database I, have to check this information (Number,Text, Memo etc.)
    I did try to find it to search in VB5 the property behind the dot
    MyDYN(MyField).??????

    Is there any property to get this information.

    Nice greetings,

    Michelle.

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    You can check the Type property of that field.


    Recordset.Field("MyField").Type

    The type would be one of the following constants:


    dbBigInt - Big Integer
    dbBinary - Binary
    dbBoolean - Boolean
    dbByte - Byte
    dbChar - Char
    dbCurrency - Currency
    dbDate - Date/Time
    dbDecimal - Decimal
    dbDouble - Double
    dbFloat - Float
    dbGUID - GUID
    dbInteger - Integer
    dbLong - Long
    dbLongBinary - Long Binary (OLE Object)
    dbMemo - Memo
    dbNumeric - Numeric
    dbSingle - Single
    dbText - Text
    dbTime - Time
    dbTimeStamp - Time Stamp
    dbVarBinary - VarBinary


    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819


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