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
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