also wenn du ein datums-feld definiert hast, solltest du folgendes machen:

'******************** FUNKTIONEN ****************************
function SQLdate(dtDatum)
 dim sTag, sMonat, sJahr
 sTag = right("0" & day(dtDatum), 2)
 sMonat = right("0" & month(dtDatum), 2)
 sJahr = cstr(year(dtDatum))
 SQLdate = sMonat & "/" & sTag & "/" & sJahr
end function
'************************************************************

 sqlCommand = "SELECT * " &_
    "FROM tabelle "&_
    "WHERE datum_bis <= #"&SQLdate(datum_heute)&"#"

aber wie kann ein datum, das du selektieren willst kleiner als datum heute
und gleichzeitig gr��er sein????

da hast du irgendwie einen logischen fehler drin.


----- Original Message -----
From: "Manuel Schnitger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 4:09 PM
Subject: RE: [Coffeehouse] Datum von - bis?


>
> klappt das vielleicht, oder ahbe ich da jetzt was falsch verstanden?
>
> select tabelle.text,tabelle.datum_von,tabelle.datum_bis from tabelle where
datum_bis >= <%datum_heute%> and <= <%datum_heute%>
>
> -----Original Message-----
> From: Mayer, Stefan [mailto:[EMAIL PROTECTED]]
> Sent: 03 February 2003 14:59
> To: [EMAIL PROTECTED]
> Subject: [Coffeehouse] Datum von - bis?
>
>
> Ich stehe im Moment voll auf der Leitung....
>
> Tabelle: Feld Text, von, bis.
>
> Ich will ein Recordset �ffnen, in dem ich alle Texte, die heute (GetDate)
gelten. Wobei ein von 3.2.2003 bis 3.2.2003 auch gefunden werden soll.
>
>
> Hat jemand eine Idee?
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
> Kaffeepause im United Planet Communityserver ...
> http://www.intrexx.com/communityserver
> _______________________________________________
> Coffeehouse mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/coffeehouse
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
> Kaffeepause im United Planet Communityserver ...
> http://www.intrexx.com/communityserver
> _______________________________________________
> Coffeehouse mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/coffeehouse
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Kaffeepause im United Planet Communityserver ...
http://www.intrexx.com/communityserver                         
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse

Antwort per Email an