J
|
Jane 10/24/2006 |
Peter,
|
F
|
fatboylives author 10/24/2006 |
Thanks Jane. I get what you mean re the sql part but I will get the help if you can and I will understand hopefully after that. |
J
|
Jane 10/25/2006 |
Here is the SQL query you need: select ID, Block, Description, Status, entered from faults where (Status<100 and entered>NOW()-3
|
F
|
fatboylives author 10/25/2006 |
Here is the SQL query you need: Use this query in your AddOnLoad event.
|
J
|
Jane 10/26/2006 |
Hi, Sub AddOnLoad() set rstmp = Server.CreateObject("ADODB.Recordset") strSQL = "select ID, Block, Description, Status, entered from faults where (Status<100 and entered>NOW()-3" rstmp.Open strSQL, dbConnection do while not rstmp.eof Response.write rstmp("ID") &" "&rstmp("Block") & " " & rstmp("Description") & " " & rstmp("Status") & " " & rstmp("entered") & " " rstmp.MoveNext loop rstmp.Close : set rstmp =nothing End Sub |
F
|
fatboylives author 10/26/2006 |
Hi, you need to use this code in the event. Here is a sample:
|