Results 1 to 3 of 3

Thread: datatype of table field

  1. #1

    Thread Starter
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120

    datatype of table field

    hi friends

    I what to now the type name of a field of a table

    Eg rs.fields("name").type

    This returns 10 which means it is a string

    is their any fuction or some solution so that i can get the typename of the field

    I.e "String" instead of 10

    rs.fields("name").type returns interger(1,10,8) i want the typename such as "boolean","string","date"
    with Regards
    sameer Mulgaonkar

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Use the TypeName function on the Value property. I am not sure if this will work in all cases. For example, the database field might be defined as a String but contain Date values. TypeName may return Date and not the expected String. Just test to make sure.

    TypeName(rs.fields("name").Value)

  3. #3

    Thread Starter
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120
    sorry to say but ur option does not work !!
    with Regards
    sameer Mulgaonkar

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