Askeladden
Programmer
I am trying, by using SQL in my VB 6.0 program, in combination with Access, to read a field Forfall, which has a datatype of DATETIME. In my program I need to list all dates (but, just the date!) that are equal to the systemdate (of host machine) and excludes the field Kvitter ut with an occurance of 'x' in it.
The SQL code i have so far is:
This works, but only by listing entries that doesn't have x in the Kvitter ut field. I need to code it so that it also limits the entries listing to those that have todays date (i.e. the host computers systemdate).
This code I am not sure of since I am not very familiar with SQL.
Can someone please help in this?
Thanks!
Christian
The SQL code i have so far is:
Code:
SELECT Forfall, Ansvarlig, Eiendom, Bygg, Anlegg, [Ordre Beskrivelse], Merknader, [Interval Nummer], [Interval Gang], Fritekst2, Fritekst3, [Kvitter ut], ID
FROM [Vedlikeholds Rutiner]
WHERE [Kvitter ut] <> 'x'
ORDER BY Forfall ASC
This works, but only by listing entries that doesn't have x in the Kvitter ut field. I need to code it so that it also limits the entries listing to those that have todays date (i.e. the host computers systemdate).
This code I am not sure of since I am not very familiar with SQL.
Can someone please help in this?
Thanks!
Christian