An other frustation in constructing SQL-strings is the type-dependant notation of variables:
single quotes for Text, # for Date, decimal point for Real values (dependant on regional settings).
I use three simple general functions that I use everywhere: As_text, As_date, As_real, independant of...