R
ravindar thati
hello friends,
i have a table named "Technology"
it has few columns.
of them two are
1.Name
2. Type
i have written a query and exectued like this
my code goes like this
dim db as database
dim rs as Recordcount
set db=CurrentDb
set rs=db.OpenRecordset("select * from Technology where
Technology.Type="Water" ")
rs.getRows
msgbox(rs.RecordCount)
if i execute this query in query wizard i get record count correctly.
but when i implement this query in my code, it displays record count
as 2 every time.
same query , but why i am facing the problem?
but if i put rs.getRows command multiple times, the record count is
increasing by one.
actually we have to get all the rows with single rs.getRows command .
but why this peculiar thing?
whats wrong in my code?
Thank you
i have a table named "Technology"
it has few columns.
of them two are
1.Name
2. Type
i have written a query and exectued like this
my code goes like this
dim db as database
dim rs as Recordcount
set db=CurrentDb
set rs=db.OpenRecordset("select * from Technology where
Technology.Type="Water" ")
rs.getRows
msgbox(rs.RecordCount)
if i execute this query in query wizard i get record count correctly.
but when i implement this query in my code, it displays record count
as 2 every time.
same query , but why i am facing the problem?
but if i put rs.getRows command multiple times, the record count is
increasing by one.
actually we have to get all the rows with single rs.getRows command .
but why this peculiar thing?
whats wrong in my code?
Thank you