"Set dB = CurrentDb" is not working on mine... The code runs fine until that point, at which it exits (skipping the error because blnInProcess is still false at this point). Help.
Can you use action queries in the transaction, or do you have to use SQL statement? I have two tables with 64 fields in each and trying to avoid the typing
Hi Sean! I´ve used your method for transaction and that worked just fine for inserts. But I am trying to do the same for updates and it just doesnt work. It´s strange, the first time it work, but the second time or the next ones it just dont update the values, and I dont know why. The database become locked too, so I have to close everything so that things come back to normal state.
I see now that even if I try to exclude or update the item directly in the table, I cant do it. The records become locked. Wierd... Do you have any idea of why does it happen? Thank you
"Set dB = CurrentDb" is not working on mine... The code runs fine until that point, at which it exits (skipping the error because blnInProcess is still false at this point). Help.
On some systems you may need to use Dim db as DAO.Database
Try that and let me know!
@@seanmackenziedataengineering Thanks for the tip!👍 I'll definitely let you know when I get around to trying it.
thank you for your great video, it is so clear and so easy, thank you very much
Thanks for the feedback! Glad it worked for you.
Thank you, this was very helpful!
Good to hear!
Can you use action queries in the transaction, or do you have to use SQL statement? I have two tables with 64 fields in each and trying to avoid the typing
Great question! You can use all of the types, insert, update, delete, etc.
@@seanmackenziedataengineering Thank You !!
Hi Sean! I´ve used your method for transaction and that worked just fine for inserts. But I am trying to do the same for updates and it just doesnt work. It´s strange, the first time it work, but the second time or the next ones it just dont update the values, and I dont know why. The database become locked too, so I have to close everything so that things come back to normal state.
I see now that even if I try to exclude or update the item directly in the table, I cant do it. The records become locked. Wierd... Do you have any idea of why does it happen? Thank you
Interesting.. can you post or send your code?
thanks for sharing.
You bet!
👍
Thanks!
👍
Thx!