use of variable

 Sub SetFilter()


    Dim LSQL  As String

    

    LSQL = "select * from tbl_not_data_010_notlar"

    LSQL = LSQL & " where madde = '" & cboShowCat & "'"

    

    Form_frm_not_data_010_notlar.RecordSource = LSQL

    

End Sub

Comments

Popular posts from this blog

VBA - sorting data

HTML files management with vba