The error message says you are trying to compare different data types - e.g. text and dates.
try changing
....And Format(barwar, ""ddmmyyyy"") ="....
to
....And Format(barwar, 'ddmmyyyy') ="...
or just try
strLink & " And barwar = " & Date
However I go on holiday today so this will be my final response for a couple of weeks.
If the above doesn't work, suggest start a new thread, but provide example details of what you really have in your table - type, names and sample data as it really is