Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
conn.Open "asois"
rs.Open "Select StockName,Brand,Quantity from stock where Quantity <'" & "10" & "'", conn, 3, 3
Set grid1.Recordset = rs
Set rs = Nothing
Set conn = Nothing
at the datafield Quantity. i want to display only those less that 10 values.my codes doesnt really work..

New Topic/Question
Reply



MultiQuote




|