How to use Transactions in MS Access - BeginTrans, Commit, Rollback

Поділитися
Вставка
  • Опубліковано 12 гру 2024

КОМЕНТАРІ • 19

  • @theycallmerye3
    @theycallmerye3 Рік тому +2

    "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.

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  Рік тому +1

      On some systems you may need to use Dim db as DAO.Database
      Try that and let me know!

    • @theycallmerye3
      @theycallmerye3 Рік тому

      @@seanmackenziedataengineering Thanks for the tip!👍 I'll definitely let you know when I get around to trying it.

  • @mohammedfarhat1444
    @mohammedfarhat1444 2 роки тому +2

    thank you for your great video, it is so clear and so easy, thank you very much

  • @An-be5bh
    @An-be5bh 5 місяців тому

    Thank you, this was very helpful!

  • @imstevemcqueen
    @imstevemcqueen 3 роки тому +1

    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

  • @rogerio74c
    @rogerio74c 2 роки тому +1

    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.

    • @rogerio74c
      @rogerio74c 2 роки тому +1

      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

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  2 роки тому

      Interesting.. can you post or send your code?

  • @RH-hc7th
    @RH-hc7th 2 роки тому +1

    thanks for sharing.

  • @abdullahazrezar8005
    @abdullahazrezar8005 3 роки тому +2

    👍

  • @SAMYTAHER
    @SAMYTAHER 2 місяці тому +1

    👍