خب همین N رو چرا در کد دلفی نگذاشتید؟

FDT.Filter:='CustomerCode LIKE N''%'+Trim(txtFilter.Text)