Hi,
I'm using python as the language in ASP pages to query a database ussing the
com interface. I want to do a parameter query and I have to use constants
like Null and Nothing. Does anyone know how to use the constants in Python?
Part of the code:
#------------------
cmdQuery = win32com.client .Dispatch("ADOD B.Command")
cmdQuery.Active Connection = cnn
cmdQuery.Comman dText = "aStoredQue ry"
cmdQuery.Comman dType = adCmdStoredProc
# parameter: startdate
qryParm = win32com.client .Dispatch("ADOD B.Parameter")
qryParm.Name = "parDateSta rt"
qryParm.Type = adDBDate
tmpDate =
req.documentEle ment.selectSing leNode("//request_parDatB egin").text
qryParm.Value = Null # at least sometimes
cmdQuery.Parame ters.Append(qry Parm)
#---------------
end code
Bob
I'm using python as the language in ASP pages to query a database ussing the
com interface. I want to do a parameter query and I have to use constants
like Null and Nothing. Does anyone know how to use the constants in Python?
Part of the code:
#------------------
cmdQuery = win32com.client .Dispatch("ADOD B.Command")
cmdQuery.Active Connection = cnn
cmdQuery.Comman dText = "aStoredQue ry"
cmdQuery.Comman dType = adCmdStoredProc
# parameter: startdate
qryParm = win32com.client .Dispatch("ADOD B.Parameter")
qryParm.Name = "parDateSta rt"
qryParm.Type = adDBDate
tmpDate =
req.documentEle ment.selectSing leNode("//request_parDatB egin").text
qryParm.Value = Null # at least sometimes
cmdQuery.Parame ters.Append(qry Parm)
#---------------
end code
Bob
Comment