I have a local procedure that checks that all the "required" fields have not been left empty (via the control's tag property) prior to saving the record. Since I have to do this for multiple forms I'd like to make this into a global function but can't figure how to pass the name of the current form in a way that doesn't produce errors. I tried a string variable but that produced a type mismatch.
The original line that I'm trying to make global is
For Each ctl In Me.Controls
Any suggestions?