TheCandyman
Technical User
I'm trying to loop through a couple of queries to a DB, but i'm having issues using the GetRows. I have a NameArray with 10 items such as:
Council on Bylaws
Council on Communications
So, i wanted to use those names as the array name, and just replace the spaces with an underscore. But i have something a little off in the "Replace"
error message
Council on Bylaws
Council on Communications
So, i wanted to use those names as the array name, and just replace the spaces with an underscore. But i have something a little off in the "Replace"
Code:
For x=0 to Ubound(NameArray,2)
Set rs = Conn.Execute(SQL)
If NOT rs.EOF And NOT rs.BOF Then
response.write NameArray(0,x) &"<br>"
replace(NameArray(0,x)," ","_") = rs.GetRows()
End If
rs.close
Next
error message
Code:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'replace'