---
title: "Lite problem"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/49633-lite-problem"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Asa"
published: "2002-08-06T10:18:44.000Z"
updated: "2002-08-06T11:40:33.000Z"
replies: 2
views: 151
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/49633-lite-problem"
---

# Lite problem

## #1 — Asa, 2002-08-06T10:18Z

Jag har denna kod:

```
Dag = Day(date)
If Dag = 1 And Application("tiden") <> date Then
    Set RS = Conn.Execute("SELECT * From topplista")
        Do Until RS.EOF
           Conn.Execute("Update topplista Set Inp=0, Utp=0,InUt=0")
        RS.MoveNext
        Loop
    RS.Close
    Set RS = Nothing
Application("tiden") = date
End If
```

Men den nollställer hela tiden när det är den 1:a
Vad ska jag ändra? Hur ska det vara istället!?

/Åsa

Permalänk: https://www.webforum.nu/p/49633

## #2 — LarsG, 2002-08-06T11:21Z

```
Dag = Day(date())
If Dag = 1 And cdate(Application("tiden")) <> date() Then
   Conn.Execute "Update topplista Set Inp=0, Utp=0,InUt=0"
   Application("tiden") = date()
End If
```

Permalänk: https://www.webforum.nu/p/744649

## #3 — Asa, 2002-08-06T11:40Z

Tackar! :)

Permalänk: https://www.webforum.nu/p/744672

---

Tråden på webben: https://www.webforum.nu/amne/asp/49633-lite-problem
