ASP 3.0 Declare ADO Constants w/out Including ADOVBS.inc

前端 未结 3 738
情歌与酒
情歌与酒 2021-01-20 07:29

I\'ve written a simple form handler script using ASP3.0/VBScript and would like to add the inputted data (via the web) to an Access database located on my server. I\'m using

3条回答
  •  情话喂你
    2021-01-20 07:47

    Relevant list of constants can be found here: http://www.4guysfromrolla.com/ASPScripts/PrintPage.asp?REF=%2Fwebtech%2Ffaq%2FBeginner%2Ffaq7.shtml

    I'll copy it here as well:

    '---- CursorTypeEnum Values ----
    Const adOpenForwardOnly = 0
    Const adOpenKeyset = 1
    Const adOpenDynamic = 2
    Const adOpenStatic = 3
    
    '---- CursorOptionEnum Values ----
    Const adHoldRecords = &H00000100
    Const adMovePrevious = &H00000200
    Const adAddNew = &H01000400
    Const adDelete = &H01000800
    Const adUpdate = &H01008000
    Const adBookmark = &H00002000
    Const adApproxPosition = &H00004000
    Const adUpdateBatch = &H00010000
    Const adResync = &H00020000
    

    Should be enough for inserting/selecting/updating records in database.

提交回复
热议问题