J
jbkirby via AccessMonster.com
Let say i have this result of my query
FieldA FieldB FieldC
002 jerry kirby
004 balce fortes
021 cruz dela
041 dea bong
071 hey jam
090 bak dd
.....
and I want to get the value of the fourth record in FieldA, that is '041' to
be stored in a variable in a form. how do i employ this one?
This is what I want to do. But I can't find the right way to do it. Can
someone help me please.
Dim RS As Object
Set RS = CurrentDb().OpenRecordset("qryJBKirby")
iRecordCount = rs.recordcount
iSetCount = Int(iRecordCount / 16000)
a = 1
RS.MoveNext
a = a + 1
if a = 4 then (get value of fieldA)
end if
FieldA FieldB FieldC
002 jerry kirby
004 balce fortes
021 cruz dela
041 dea bong
071 hey jam
090 bak dd
.....
and I want to get the value of the fourth record in FieldA, that is '041' to
be stored in a variable in a form. how do i employ this one?
This is what I want to do. But I can't find the right way to do it. Can
someone help me please.
Dim RS As Object
Set RS = CurrentDb().OpenRecordset("qryJBKirby")
iRecordCount = rs.recordcount
iSetCount = Int(iRecordCount / 16000)
a = 1
RS.MoveNext
a = a + 1
if a = 4 then (get value of fieldA)
end if