Hello all,
It's been a while since I've posted but I've been digging around trying to find as much information as I possible can regarding Recordsets. I have a few questions as the resources I have give me to dots but I haven't drawn the lines as clearly as I'd like.
From my understanding, a recordset works along the lines of:
Dim rs as DAO.Recordset
rs = "SQL STATEMENT"
Then I can use that recordset to populate controls on a form, effectively eliminating the need to use a bound text field.
It is also my understanding, I believe I found it on the MVPS site, that using the recordset on the forms OnLoad event greatly enhances a forms load time, especially when dealing with a large number of records.
Furthermore, recordsets allow a user to make whatever changes they want to the recordset without having to save the changes to that data until they specify. So, a form with recordset data can be parsed, manipulated, etc til kingdom come and until the user performs the function that you've created to actually change the data no changes actually take place to the data stored in the tables.
My main interest lies with increasing performance within my forms. I am not a fan of bound text boxes especially when dealing with a large number of records and I am curious if I am on the right track. I have used queries in the past, with criteria to limit the number of records returned so forms load faster, but it seems to me that recordsets seem a little more advanced and have a high pay off.
Any advice ?
It's been a while since I've posted but I've been digging around trying to find as much information as I possible can regarding Recordsets. I have a few questions as the resources I have give me to dots but I haven't drawn the lines as clearly as I'd like.
From my understanding, a recordset works along the lines of:
Dim rs as DAO.Recordset
rs = "SQL STATEMENT"
Then I can use that recordset to populate controls on a form, effectively eliminating the need to use a bound text field.
It is also my understanding, I believe I found it on the MVPS site, that using the recordset on the forms OnLoad event greatly enhances a forms load time, especially when dealing with a large number of records.
Furthermore, recordsets allow a user to make whatever changes they want to the recordset without having to save the changes to that data until they specify. So, a form with recordset data can be parsed, manipulated, etc til kingdom come and until the user performs the function that you've created to actually change the data no changes actually take place to the data stored in the tables.
My main interest lies with increasing performance within my forms. I am not a fan of bound text boxes especially when dealing with a large number of records and I am curious if I am on the right track. I have used queries in the past, with criteria to limit the number of records returned so forms load faster, but it seems to me that recordsets seem a little more advanced and have a high pay off.
Any advice ?