Private Sub CmdBuscarR_Click()
Dim Rubro As String
Rubro = FrmProveedores.TxtBRubro.Text
If DataEnvironment2.rsCommand1.State = 1 Then
DataEnvironment2.rsCommand1.Close
End If
DataEnvironment2.rsCommand1.Source = "SELECT * FROM Proveedores WHERE Rubro = " [COLOR=green]'&Rubro&' ""[/COLOR]
End Sub