thanks but it just doesnt seem to workl for me. here is my code. This is so frustrating
Public Function CreateQueryForHolidays(dtStartdate As Date, dtMatdate As Date, strCurrency As String, strCountry As String)
Dim quniSql As String
Dim db As Database
Dim qdf As QueryDef
Set db = CurrentDb...