Trying to determine the best solution for moving forward with VBA record finds.
Some literature state that dlookup is slow on larger tables ... I tested this against a 200 record DAO recordset findfirst and the DAO model was about 25% faster ... based on the coment I gather this will change for the worst as the size of the table increases
Another source stated that MS is no longer going to support new changes to the DAO model and they recommend moving to the ADO model.
Can I get another opinion on this last comment ... I have been using the DAO model for several years now and it seems to do everything I need ... I went to do a simple test with ADO and couldn't manage to get it to work so kind of hard to make my own mind up.
dim rst as ADOB.recordset
with rst
.open "sometable", CurrentProject.connection
.find "[somefield] = '" & somevalue & "'"
if not .eof then
debug.print "Found"
else
debug.print "Not Found"
end if
.close
end with
Some literature state that dlookup is slow on larger tables ... I tested this against a 200 record DAO recordset findfirst and the DAO model was about 25% faster ... based on the coment I gather this will change for the worst as the size of the table increases
Another source stated that MS is no longer going to support new changes to the DAO model and they recommend moving to the ADO model.
Can I get another opinion on this last comment ... I have been using the DAO model for several years now and it seems to do everything I need ... I went to do a simple test with ADO and couldn't manage to get it to work so kind of hard to make my own mind up.
dim rst as ADOB.recordset
with rst
.open "sometable", CurrentProject.connection
.find "[somefield] = '" & somevalue & "'"
if not .eof then
debug.print "Found"
else
debug.print "Not Found"
end if
.close
end with