Hi all,
Hope someone can help me... I just cant get this little bit of sql to work!
sqlBerechtigter = "SELECT tbl_Berechtigter.ID, [vorname] & ' ' & [nachname] & ', ' & [strasse] & ' ' & [hausNr] & ', ' & [plz] & ' ' & [ort] AS RE FROM tbl_Berechtigter WHERE ((tbl_Berechtigter.tbl_Grab_ID)=" & GSID & ") AND ((tbl_Berechtigter.Berechtigungsende) Is Null) AND ((tbl_Berechtigter.Zahlung)=-1));" '
up to here it works... now all I want to do is also select the records where the tbl_Berechtigter.Berechtigungsende is a date later than todays date! But as soon as I bring in an "OR" it goes haywire!
(i.e. where the Date is either empty or later than todays date)
Thanks a lot for any help!
Marion
Hope someone can help me... I just cant get this little bit of sql to work!
sqlBerechtigter = "SELECT tbl_Berechtigter.ID, [vorname] & ' ' & [nachname] & ', ' & [strasse] & ' ' & [hausNr] & ', ' & [plz] & ' ' & [ort] AS RE FROM tbl_Berechtigter WHERE ((tbl_Berechtigter.tbl_Grab_ID)=" & GSID & ") AND ((tbl_Berechtigter.Berechtigungsende) Is Null) AND ((tbl_Berechtigter.Zahlung)=-1));" '
up to here it works... now all I want to do is also select the records where the tbl_Berechtigter.Berechtigungsende is a date later than todays date! But as soon as I bring in an "OR" it goes haywire!
(i.e. where the Date is either empty or later than todays date)
Thanks a lot for any help!
Marion