Hi Guys!
How do I get rid of this "Type Mismatch" error? The first SQL call is indeed inserting a row, but for some reason it returns a null of empty ID so I have to go fetch the ID with the second SQL call. This second one is giving me the trouble:
Dim BioWebServerConnector
Dim BioWebMatch
Dim MatchResponse
Dim ID
Set BioWebServerConnector = CreateObject("BioWeb2Server.Connector")
Set BioWebMatch = BioWebServerConnector.Match
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Biometric_Transactions", cn, adOpenKeyset, adLockPessimistic, adCmdTable
rs.AddNew
rs("UserID") = Request.Form("User_Logon")
rs("VerifyFeature") = BioWebMatch.Decode(Request.Form("VerifyFeature"))
rs("SupportedDevice") = Request.Form("SupportedDevice")
rs("RemoteAddress") = Request.ServerVariables("REMOTE_ADDR")
rs("Approved") = 0
rs.Update
ID = rs("ID")
rs.Close
Set rs = Nothing
If (ID = NULL) OR (Len(ID) = 0) Then
Dim ConnectionString, MySql
Dim Conn
ConnectionString = "DSN=BioWeb;UID=sa;PWD=Not4U2C;"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open ConnectionString
MySql = "SELECT MAX(ID) AS ID FROM Biometric_Transactions"
Conn.Execute MySql
'I'm getting a "Type Mismatch" error here
ID = rs("ID")
Conn.Close
Set Conn = Nothing
End If
How do I get rid of this "Type Mismatch" error? Both the server and the client are running on the same laptop, with the IUSR account set up with access to the database.
Thanx
Dave
ASKER