Ok this is supposed to be simple but it is not for some reason. i had a post in sql programming that had 37 replies. now im trying here. Im just trying to make a record set with a sql statement against a sql server 2000. here is my error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/a_invoices.asp, line 433
here is where it is in code. its pointing at the set statement:
Dim strIsApproved
strIsApproved = "SELECT * FROM InvoiceApproval WHERE Month_Date >= '" & Option_Date & "' AND Month_Date <' " & toDate & "' AND Service = " & service & " AND Cost_Center = " & Service_CC_hold & " AND Carrier = " & Service_Car_hold & " AND Account = " & Service_Acc_hold & " AND Disapproved = false"
'Response.Write strIsApproved
Dim objRS_IsApproved
Set objRS_IsApproved = Server.CreateObject("ADODB.Recordset")
objRS_IsApproved.Open strIsApproved,objConnHD,adOpenKeyset
Here is what it outputs before it comes to error:
SELECT * FROM InvoiceApproval WHERE Month_Date >= '2/1/2005' AND Month_Date <' 3/1/2005' AND Service = Mobile AND Cost_Center = 101.80360.11151798 AND Carrier = Bluegrass Cellular AND Account = 0-01 0148312 0 AND Disapproved = false
My dsn connections are fine too:
Set objConnHD = Server.CreateObject("ADODB.Connection")
objConnHD.ConnectionString = "DSN=CarHD;UID=****;PWD=****"
objConnHD.Open
If anyone can figure it out the you are a guru. any helpful hints. If you need more info ask or check out my thread in sql programming. Alls i know is that im stuck like chuck and i had stumped 3 others.
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/a_invoices.asp, line 433
here is where it is in code. its pointing at the set statement:
Dim strIsApproved
strIsApproved = "SELECT * FROM InvoiceApproval WHERE Month_Date >= '" & Option_Date & "' AND Month_Date <' " & toDate & "' AND Service = " & service & " AND Cost_Center = " & Service_CC_hold & " AND Carrier = " & Service_Car_hold & " AND Account = " & Service_Acc_hold & " AND Disapproved = false"
'Response.Write strIsApproved
Dim objRS_IsApproved
Set objRS_IsApproved = Server.CreateObject("ADODB.Recordset")
objRS_IsApproved.Open strIsApproved,objConnHD,adOpenKeyset
Here is what it outputs before it comes to error:
SELECT * FROM InvoiceApproval WHERE Month_Date >= '2/1/2005' AND Month_Date <' 3/1/2005' AND Service = Mobile AND Cost_Center = 101.80360.11151798 AND Carrier = Bluegrass Cellular AND Account = 0-01 0148312 0 AND Disapproved = false
My dsn connections are fine too:
Set objConnHD = Server.CreateObject("ADODB.Connection")
objConnHD.ConnectionString = "DSN=CarHD;UID=****;PWD=****"
objConnHD.Open
If anyone can figure it out the you are a guru. any helpful hints. If you need more info ask or check out my thread in sql programming. Alls i know is that im stuck like chuck and i had stumped 3 others.