Sub getFormRS()
Dim objAcc As AccessObject
On Error Resume Next
For Each objAcc In Application.CurrentProject.AllForms
DoCmd.OpenForm objAcc.Name, acDesign
Debug.Print Forms(objAcc.Name).RecordSource
DoCmd.Close acForm, frm.Name, acSaveYes
Next objAcc
End Sub