J
Joao
Trying to pass a SQL expression to a subform. The SQL expression returns
records using Query view in access, but using this...
....
SQLString = "SELECT * FROM Processos"
funcRunSQL SQLString
....
Public Function funcRunSQL(strCmdSQL As String)
Set BD = CurrentDb
Set rstSQL = BD.OpenRecordset( _
strCmdSQL, dbOpenDynaset)
'Name of the subform
subfrmConcDU.Form.RecordSource = strCmdSQL
rstSQL.Close
BD.Close
I get nothing! Why?
records using Query view in access, but using this...
....
SQLString = "SELECT * FROM Processos"
funcRunSQL SQLString
....
Public Function funcRunSQL(strCmdSQL As String)
Set BD = CurrentDb
Set rstSQL = BD.OpenRecordset( _
strCmdSQL, dbOpenDynaset)
'Name of the subform
subfrmConcDU.Form.RecordSource = strCmdSQL
rstSQL.Close
BD.Close
I get nothing! Why?