Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
'Instrução SQL que retorna os campos classificados em ordem alfabética por unidade
'strSQL = "SELECT UNIDADE, CARGO, MATRICULA, NOME, SALARIO " & "FROM [Base$A:E]
order by UNIDADE"
'strSQL = "SELECT * " & "FROM [Base$A:E] WHERE unidade = 'SGMR' AND SALARIO > 150"
'strSQL = "SELECT * " & "FROM [Base$A:E] WHERE SALARIO > " & VrSalario
strSQL = "SELECT * " & "FROM [Base$A:K] WHERE unidade IN ('SGMR', 'SGCC')order by
UNIDADE"
'strSQL = "SELECT * " & "FROM [Base$A:K] WHERE SALARIO > 150"
'Abrimos a conexão
banco.Open conStr
'MsgBox func.RecordCount
Me.txt_total_reg = func.RecordCount
'Mostrando dados
Me.txt_unidade = func!unidade
Me.txt_cargo = func!cargo
Me.txt_matricula = func!matricula
Me.txt_nome = func!nome
Me.txt_salario = func!salario
End Sub
func.MoveFirst
MostrarRegistros
End Sub
func.MoveNext
func.MovePrevious
End If
MostrarRegistros