dim i
i = 0
do while not rsOrder.eof
varOrder(i) = "<th><a href='?itemid=" & _
rsOrders(0) & "'>" & _
rsOrders(1) & "</a></th>"
i = i + 1
rsOrders.movenext
loop
(not tested)
Your email is HTML formatted, but the email client obviously is not compatible with the <input type='checkbox'> tag. My Outlook 2007 is not. It shows [X] or [ ]....
I expect a ProjectID to be numeric and a Projectname varchar. So in this query you are combining 2 SELECT's that do not produce the same field TYPE (= George's remark):
SELECT ProjectID as ProjectName
FROM tblTaskToolProRght
WHERE [UserID] = 'nato' AND [SuperUser] = 1
UNION
SELECT...
Mmmmmm, my initial thought is: 20 minutes processing??!!! if your script does database operations: use a stored procedure. Most likely that will speed up things.
Besides that: with programs like this there will be a maximum number of simultaneous jobs (performance wise).
I would store every user...
to me it looks like you are sending "raw" characters to the HP. The formatting codes for matrix and laser printers are completely different. For the HP you need PCL5 escape codes.
Have a look at:
http://pcl.to/reference/
1) use ? in the strSQL
2) use the fieldname in the createparameter
<%
set objCommand = server.CreateObject("adodb.command")
Set objCommand.ActiveConnection = objConn
objCommand.CommandText = "SELECT DISTINCT [field1] FROM [table1] WHERE field1 = ?"
objCommand.CommandType = 1
Set param1 =...
superstrange, it works on my box.
i modified it a little to show you the string manipulation:
<%
cTheString = "Example130-Your Analysis Bus-0.00-W-20032,Help130-My Analysis Aug-0.33-C-20052"
response.Write cTheString
do while cTheString <> ""
'Where is the first comma?
nComma =...
sorry, now i see the , in that string.
so there is an outer loop for that code, in which you do a left( string, "comma position")
you find that (1st) "comma position" by using the InStr function.
<%
c = "Example130-Your Analysis Bus-0.00-W-20032,Help130-My Analysis Aug-0.33-C-20052"
a = split(c,"-")
for i = 0 to ubound(a)
response.Write a(i) & "<br>"
next
%>
Is Violation_ID a textfield? If it is numeric value then get rid of the surrounding ' around valVid.
in cases like this a response.write the sql statement (followed by response.end). I can see the final sql, and copy /paste the statement into de SQL enterprise manager...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.