Obligatory warning: you sometimes need to be careful with the code from
Randy's site, as it's aimed at VB coders, not Access coder, which means that
the form-related instructions sometimes don't port to Access very well. This
particular sample looks as though there should be no problem.