Quantcast
Viewing all articles
Browse latest Browse all 21127

SQL command to display data from Access DB

Hey

I have some data to display in listview from Access Database
with two conditions.
1. For item selected in ListView1 and
2. If the selected item's has more than US $ 1 value in "IncreAmnt" field.

Code:

rs.Open "Select * from tblPayroll where IncreAmnt = " & Me.ListView1.SelectedItem.Text & , > "1", , cn, adOpenKeyset, adLockPessimistic
In another listview, I need to display list whichever technician who has any text in Increment field.

Increment column has the value like
1. Driving passed,
2. RPP Passed
3. Annual

Code:

rs.Open "Select * from tblPayroll where Increment = " ";", cn, adOpenKeyset, adLockPessimistic

Thanks for gud help,
vb-kid

Viewing all articles
Browse latest Browse all 21127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>