what is tblCompany and cCompName a variables?
then your sql missing more then few &
strSQL = "Select * From " & tblCompany & _
" Where " & cCompName & " Like '" & cmbCmpName.Text & "*'"
i you use Like then mayby you can use *
|
Results 1 to 5 of 5
Thread: Simple SQL StatementThreaded View
|
Click Here to Expand Forum to Full Width |