i have tried every thing to get this query to work.
there must be a simple answer.If i use # to enclose the dates
the query returns no record.if i dont use the # the query returns all records regardless
of the date
Set TopQdf = Dbs.CreateQueryDef("", "SELECT TOP 14 AvailableDates.DatesAvailable, AvailableDates.id" _
& " " & "FROM AvailableDates" _
& " " & "WHERE (((AvailableDates.DatesAvailable) >= #" & [Forms]![datequery]![QueryDate] & "#" & "))" _
& " " & "ORDER BY AvailableDates.id;")
please can any one assist
thanks in advance
there must be a simple answer.If i use # to enclose the dates
the query returns no record.if i dont use the # the query returns all records regardless
of the date
Set TopQdf = Dbs.CreateQueryDef("", "SELECT TOP 14 AvailableDates.DatesAvailable, AvailableDates.id" _
& " " & "FROM AvailableDates" _
& " " & "WHERE (((AvailableDates.DatesAvailable) >= #" & [Forms]![datequery]![QueryDate] & "#" & "))" _
& " " & "ORDER BY AvailableDates.id;")
please can any one assist
thanks in advance