standardxx
asked on
EOF and BOF
i developed a program using VB6, that deals with an access database, using mdac 2.6, now everything is ok, but when i run it on windows 89, mdac 2.6 as well i have this problem
using a select statment, when i get one output record from a table full of records, i get BOF .
while on Windows 2000 i always get (not EOF)
and in all my code am using
if not lrs.EOF then
......
end if
Should i change all my code to use
if (not lrs.EOF) or (not lrs.BOF) then
....
end if
or is there a different solution
Note: Windows 89 is running as a virtual machine
using a select statment, when i get one output record from a table full of records, i get BOF .
while on Windows 2000 i always get (not EOF)
and in all my code am using
if not lrs.EOF then
......
end if
Should i change all my code to use
if (not lrs.EOF) or (not lrs.BOF) then
....
end if
or is there a different solution
Note: Windows 89 is running as a virtual machine
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
well when i changed curser type to adOpenForwardOnly and when getting one output record, i got the following: BOF = False , EOF = False
other wise i get BOF = true, EOF = False
Thats is when running the application on windows 98 , i know operating system has nothing to do, but i dont know whats wring with mdac in there
when running on windows 2000 , i always get EOF = False and BOF = False
thanks any way
other wise i get BOF = true, EOF = False
Thats is when running the application on windows 98 , i know operating system has nothing to do, but i dont know whats wring with mdac in there
when running on windows 2000 , i always get EOF = False and BOF = False
thanks any way
Hi..
It is something to do with os as it seems though i am not sure but has not much of worry as I prefer to set the pointer of the data to my wish when ever i create or Fill data in recordset using the movefirst and movelast so it work my way and not os way.
Thank for Answer acceptance though.
VIkasumit
www.sumitonnet.20m.com
It is something to do with os as it seems though i am not sure but has not much of worry as I prefer to set the pointer of the data to my wish when ever i create or Fill data in recordset using the movefirst and movelast so it work my way and not os way.
Thank for Answer acceptance though.
VIkasumit
www.sumitonnet.20m.com
print the value for lsr.eof and check.
Actually
if not lrs.EOF then
......
end if
is ok.