Hi everyone I have a form (frmSearch) which has a subform fsubInfoPull. On activating the Get Records command button a query (qryInfoPull) shows various records.
The code that does is detailed below
Set qryDef = dbNm.QueryDefs("qryInfoPull"
qryDef.SQL = strSQL & " " & strWhere & "" & strOrder
DoCmd.OpenQuery "qryInfoPull", acViewNormal
I would like to show these records in the subform (fsubInfoPull) rather than in a query. I tried using the code below to substitute the DoCmd code above. However this code does not work.
DoCmd.OpenForm "fsubInfoPull", acFormDS, , , acFormReadOnly, acWindowNormal
Any suggestions wpould be appreciated
Hayton McGregor
The code that does is detailed below
Set qryDef = dbNm.QueryDefs("qryInfoPull"
qryDef.SQL = strSQL & " " & strWhere & "" & strOrder
DoCmd.OpenQuery "qryInfoPull", acViewNormal
I would like to show these records in the subform (fsubInfoPull) rather than in a query. I tried using the code below to substitute the DoCmd code above. However this code does not work.
DoCmd.OpenForm "fsubInfoPull", acFormDS, , , acFormReadOnly, acWindowNormal
Any suggestions wpould be appreciated
Hayton McGregor