Hey everyone,
I've never developed in ASP in my life, but a client wants some additional functionality in one of his really terrible ASP programs extended. I've tried to pick up as much as I can in a short period of time, but I'm running into a mystery bug here.
When I unit-test this code on my local system, it works fine. On their webserver, however, when executing the below code, I get a type mismatch on the line "Item_IDs = ..."
Any suggestions?
Thanks! -Drew
Item_IDs = RetrieveSerialItem_IDs(Serial_IDs(y))
function RetrieveSerialItem_IDs(Serial_ID)
'' # Execute query and return data in an array
strQuery = "SELECT Item_ID FROM Store_Items_Serials WHERE Serial_ID = " & Serial_ID & ";"
RetrieveSerialItem_IDs = RunSelectQuery(strQuery, "Item_ID")
end function '' # RetrieveSerialItem_IDs
'' # Function to execute a SELECT query from our database
'' # returns: the results of the query as a one-dimensional array -- do not use for multiple-column select statements
function RunSelectQuery(strSelectQuery, strColumnName)