L
Luis
Hello.
I'm trying to optimise a VBA code for search records. I'm using a tipical Do
..... Loop WHILE NOT rs.EOF with a test if the current record matches the
criteria i want and, if so i Exit Do.
This isn't efficient beacuse the table could have more than 1 million records.
The process that i need to do is the following:
1 - Find a record on Table1.Field1 that matches criteria, for example, "abcd".
2 - If record exists update Tabel1.Field2 with a value, let's assume "12345"
3 - If doesn't exist, add a new record with "abcd" in Field1.
Could someone give me a hint on making a portion of VBA code efficient to do
this?
Thanks,
Luis.
I'm trying to optimise a VBA code for search records. I'm using a tipical Do
..... Loop WHILE NOT rs.EOF with a test if the current record matches the
criteria i want and, if so i Exit Do.
This isn't efficient beacuse the table could have more than 1 million records.
The process that i need to do is the following:
1 - Find a record on Table1.Field1 that matches criteria, for example, "abcd".
2 - If record exists update Tabel1.Field2 with a value, let's assume "12345"
3 - If doesn't exist, add a new record with "abcd" in Field1.
Could someone give me a hint on making a portion of VBA code efficient to do
this?
Thanks,
Luis.