what is the yes/no type to be defined in code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syedshaffee
    New Member
    • Jan 2012
    • 91

    what is the yes/no type to be defined in code

    Hey,People
    I have a code for checking Type of data that is been uploaded from excel to my database.
    Code:
    Private Function GetDBDataTypePrefix(ByVal fldDBData As Variant) As String
        Select Case fldDBData.Type
            Case dbDate, dbTime, dbTimeStamp        ', adDate, adDBDate, adDBTime, adDBTimeStamp
                GetDBDataTypePrefix = g_sDBDateChr
            Case dbChar, dbText, dbMemo             ', adWChar, adVarWChar, adVarChar, adLongVarWChar, adLongVarChar, adBSTR
                GetDBDataTypePrefix = "'"
        End Select
    End Function
    Here is the code for checking which Type of data is been uploaded in my Table so now i want to known the type of yes/no.Eg dbyes/no or adYes/no

    Please help
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    yes/no table fields are boolean... thus, should be dbboolean
    Reference for the field types in a Microsoft Access database, matching the names in the Access interface, the names in DDL queries, the DAO constants, and the ADOX constants.

    Comment

    • syedshaffee
      New Member
      • Jan 2012
      • 91

      #3
      Thanks zmbd thanx a lot

      Comment

      Working...