What is telling you/making you think the on-access scanner isn’t working?
What OS?
What version of Avast?

suggestion : read the help and this board to make yourself familiar with Avast and the possible settings.