OK, I have made most of the changes you recommended as far as my sub name, public, explicit, etc. I had declared a string variable of RehabQuery to run to create the recordset, then I have these two lines right under the Debug.Print statements:
DoCmd.RunSQL rehabQuery
Set...