Try this then, this is all I can thik of without having the database in front of me:
If dtStart <> "" And dtEnd <> "" Then
If stLinkCriteria <> "" Then
stLinkCriteria = stLinkCriteria & " AND [CreatedDate] BETWEEN " & dtStart & " AND " & dtEnd
Else
stLinkCriteria = "[CreatedDate] BETWEEN " & dtStart & " AND " & dtEnd
End If
End If
Also, add this code BEFORE this section:
Msgbox dtStart & vbCrLf & dtEnd
See what the variables are taking. Then post the results.
mmcdonal
Look it up at:
http://wrox.books24x7.com