Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Code:
mySql = "SELECT * FROM tbl_Time WHERE NTUser = '" & strUserName & "' AND UpdateSheet = '" & date() & "'"
rs.CursorType = adOpenDynamic
rs.LockType = adLockOptimistic <---error on this line
rs.Open mySql, strConn
-----------------------------------------------------------
Keep Getting this error amd not sure how to resolve it. Not sure if its the LockType or sqL statement. Haven't ran into this error before. Everything usually worked out smooth.
I have also tried:
rs.Open mySql, strConn, adOpenDynamic, adLockOptimistic
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Code:
mySql = "SELECT * FROM tbl_Time WHERE NTUser = '" & strUserName & "' AND UpdateSheet = '" & date() & "'"
rs.CursorType = adOpenDynamic
rs.LockType = adLockOptimistic <---error on this line
rs.Open mySql, strConn
-----------------------------------------------------------
Keep Getting this error amd not sure how to resolve it. Not sure if its the LockType or sqL statement. Haven't ran into this error before. Everything usually worked out smooth.
I have also tried:
rs.Open mySql, strConn, adOpenDynamic, adLockOptimistic