J
Joao
I want to run a SQL code to present the outcome into a subform:
There's 2 criteria values for user input!
SQLString = "SELECT NrSubscritor, Initiated, Concluded, Year, Month FROM
Processos" & _
" WHERE UserID = " & lngUserNumber & " AND Year= " & intAno & " AND
Month= " & intMes & " AND Despacho=YES ORDER BY TimeStamp DESC;"
funcCorrerSQL SQLString, "E", Me
Public Function funcCorrerSQL(strCmdSQL As String, strParametro As String,
Optional JanelaFP As Form)
Main
'On Error GoTo Erros
Set rstSQL = BD.OpenRecordset( _
strCmdSQL, dbOpenDynaset)
Select Case strParametro
....
Case "E"
subform. ?
End Select
rstSQL.Close
BD.Close
End Function
There's 2 criteria values for user input!
SQLString = "SELECT NrSubscritor, Initiated, Concluded, Year, Month FROM
Processos" & _
" WHERE UserID = " & lngUserNumber & " AND Year= " & intAno & " AND
Month= " & intMes & " AND Despacho=YES ORDER BY TimeStamp DESC;"
funcCorrerSQL SQLString, "E", Me
Public Function funcCorrerSQL(strCmdSQL As String, strParametro As String,
Optional JanelaFP As Form)
Main
'On Error GoTo Erros
Set rstSQL = BD.OpenRecordset( _
strCmdSQL, dbOpenDynaset)
Select Case strParametro
....
Case "E"
subform. ?
End Select
rstSQL.Close
BD.Close
End Function