Desejo executar SELECT com variável. Isto é permitido?
Dim strquery As String, matws as double
strquery = "Select * from TB_Candidatos where Matricula = matws"
Set DB = CurrentDb()
matws = 8820724
Set rst = DB.OpenRecordset(strquery)
Dim strquery As String, matws as double
strquery = "Select * from TB_Candidatos where Matricula = matws"
Set DB = CurrentDb()
matws = 8820724
Set rst = DB.OpenRecordset(strquery)