Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

[RESOLVED] adodb update muliple records (need help)

$
0
0
Is it possible to update record using 'between' in adodb?

for example update record from '13001' to '13005'

i am using listview.

i have a code but its not working.

dim first,last as string

for each itm in lv.listitems

if itm.selected = true and first="" then
first=itm.text
elseif itm.selected = true then
last=itm.text
end if

set rs=new adodb.recordset

rs.open "select * from tbl_records where emp_no between '"& first &"' and '"& last &"'",cn,3,3

if not rs.eof then
rs!checked = true
end if
rs.update

set rs=nothing

next itm

Viewing all articles
Browse latest Browse all 21243

Trending Articles



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