I believe there is an active x object for this, but I've never had any luck with that.
I always create a rectangle with color filled to whatever, with a smallish width, and as my query runs or my form loads, I increase the rectangles width until the action finishes, and I set the rectangle to invisible, or move to my next form.
Hope this helps.