BigJimSlade
Registered User.
- Local time
- Today, 22:15
- Joined
- Oct 11, 2000
- Messages
- 173
Hi, Big Jim here:
I was wondering which was the better way to add or delete a record from a table in this situation:
I have recordset A and recordset B. Both recordsets pull records from Table1.
I make a change to data that was in recordset A, and that change should be reflected in recordet B. Should I....
A) Update recordset A to change the data...ex:
rstA.Edit
rstA!Field = "NewValue"
rstA.Update
Or
B) Run a Query...ex:
Docmd.RunSQL("UPDATE Table1 SET [Field] = "NewValue"
WHERE ect ect;")
Which one of these is a better way to do things? I know that I often have recordsets that do not show updated data immediately, and I was wondering if one of the above options is better than the other.
Thanks in advance...
Big Jim
I was wondering which was the better way to add or delete a record from a table in this situation:
I have recordset A and recordset B. Both recordsets pull records from Table1.
I make a change to data that was in recordset A, and that change should be reflected in recordet B. Should I....
A) Update recordset A to change the data...ex:
rstA.Edit
rstA!Field = "NewValue"
rstA.Update
Or
B) Run a Query...ex:
Docmd.RunSQL("UPDATE Table1 SET [Field] = "NewValue"
WHERE ect ect;")
Which one of these is a better way to do things? I know that I often have recordsets that do not show updated data immediately, and I was wondering if one of the above options is better than the other.
Thanks in advance...
Big Jim