Integrate Excel, VBA and SQL. Simplified and powerful

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • Simplified tutorial, how to Integrate Excel, VBA and SQL. Simplified and powerful
    Please like, share and comment to improve channel algorithm
    👉 Subscribe to receive our latest content czcams.com/users/VBA...
    You can now support by buying any of the Projects or Source Code.
    📥Downloads: pamaitech.com/...
    👍 Support: paypal.me/pama...
    ✉️ Contact: contact@pamaitech.com
    📌What to watch next:
    Playlist: www.youtube.co...
    Videos: www.youtube.co...
    #VbaA2z

Komentáře • 74

  • @linnick9235
    @linnick9235 Před 4 lety +2

    Sir you’ve no idea how much all these videos have helped me at work. Thanks much.. Stay blessed!

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      So nice of you. Glad to hear!

  • @matnz7546
    @matnz7546 Před 4 lety +2

    This is best and most detailed VBA SQL tutorial I have come across. Thank you so much

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      You're very welcome!

    • @YazminAbat
      @YazminAbat Před 2 lety

      could not agree more, I thought it was necessary to use a combination of power query, sql and python before this :))) Thank you very much!!

  • @hoseal8048
    @hoseal8048 Před 4 lety +1

    Yours is the best VBA CZcams channel!!!
    Keep it up!

  • @bnancy3699
    @bnancy3699 Před 4 lety +1

    Very simplified and easy to follow. thanks as always, appreciate your efforts!

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      Glad it was helpful!

  • @azel2239
    @azel2239 Před 4 lety +2

    Thanks for another cool video.
    Never knew about this.

  • @shellynomis7368
    @shellynomis7368 Před 2 lety +1

    Best tutorial, processional and practical indeed

    • @VBAA2Z
      @VBAA2Z  Před 2 lety

      Thank you Cheers!

  • @GiselleBrat
    @GiselleBrat Před rokem +1

    you are awesome, many thanks

  • @scottansir7708
    @scottansir7708 Před 4 lety +1

    You're the best mentor. Thanks Pamai.

  • @pekidonn5139
    @pekidonn5139 Před 4 lety +1

    This is brilliant. Thanks for another useful video.

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      Glad it was helpful!

  • @melivo853
    @melivo853 Před 4 lety +2

    Thanks for this useful video. Please show how to compare 2 tables and return the differences and also find the variance between 2 tables

    • @VBAA2Z
      @VBAA2Z  Před 4 lety +1

      Sure I'll share some more videos. Give it a shot from your end.
      To return only non matching items try like this: Fruits is the key field name used for comparison. Hope it helps.
      Select *
      from T1
      where Fruits not in (select Fruits from T2)
      UNION
      Select *
      from T2
      where Fruits not in (select Fruits from T1);

  • @holieh5301
    @holieh5301 Před 4 lety +1

    Thank you for another great tutorial. Keep going

  • @BEATWINCONTROL
    @BEATWINCONTROL Před 4 lety +1

    Thank you!!!! Just what i needed!!!!

  • @LiangInfinite
    @LiangInfinite Před rokem +1

    Very helpful tutorial thank you

    • @VBAA2Z
      @VBAA2Z  Před rokem

      Glad it was helpful!

  • @perymdiso1006
    @perymdiso1006 Před 4 lety +1

    Very useful video. Thanks

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      Glad it was helpful!

  • @susilsxzen-ff1zn
    @susilsxzen-ff1zn Před rokem +1

    Thank you sooo much

    • @VBAA2Z
      @VBAA2Z  Před rokem

      you're most welcome!

  • @chrish9518
    @chrish9518 Před 4 lety +1

    eye opener for me :) thanks a lot!

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      Glad to hear that!

  • @shaiknagulmeera1595
    @shaiknagulmeera1595 Před 4 lety +1

    Thank you for sharing your knowledge with all of us and I really appreciate it.
    Can you please make one complete video related to Excel to power point automation. Thanks

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      My pleasure. Have you seen below video? Anything specific you are looking to achieve?
      czcams.com/video/dIqoXYy_Clg/video.html

  • @kenstarr8612
    @kenstarr8612 Před 4 lety +1

    This is powerful. Thanks!

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      You're so welcome!

  • @Jean-hp7gh
    @Jean-hp7gh Před 11 měsíci

    Amazing tutorial. Thanks to Pamai

    • @VBAA2Z
      @VBAA2Z  Před 11 měsíci

      Thanks for watching!

  • @Rahul-sn1wn
    @Rahul-sn1wn Před 4 lety +1

    Thank you soo much sir. You’re awesome

  • @VBAA2Z
    @VBAA2Z  Před 4 lety

    Interested to become VBA Pro? Here is 100% free guided e-course with Real-life projects. Sign-up to participate, get assignments and a certificate:- bit.ly/3eX8tzl

    • @houstonvanhoy7767
      @houstonvanhoy7767 Před rokem

      @VBA A2Z Please pin this to the top of the of comments, or better, put it into your explanations above the comments.

  • @user-dp5xg7wf2b
    @user-dp5xg7wf2b Před 7 měsíci

    Thank you so much

  • @sktneer
    @sktneer Před 4 lety +1

    While using a SQL statement within the rs.Open method, you need to use the argument CommandType as "adCmdText" instead of "adCmdTable".

    • @VBAA2Z
      @VBAA2Z  Před 4 lety +1

      Appreciate the nudge. just skipped my mind.
      Adding sample below for reference.
      rs.Open "SELECT * FROM [Transactions$];", ConXL, adOpenDynamic, adLockPessimistic, adCmdText
      rs.Open "[Transactions$]", ConXL, adOpenDynamic, adLockPessimistic, adCmdTable

  • @DAXifiedSatish
    @DAXifiedSatish Před rokem

    Hi, I am facing an issue hope you can help me out. I have 2 connection and I am getting data from sharepoint list.
    I want to make final data output based on inner join of both these list. I tried but unbale to join these tables. In your example there is single connection but as I am retrieving two lists so I have two connections. Can u guide be as I can't go ahead without inner join.

  • @imranbhatti8580
    @imranbhatti8580 Před 3 lety +1

    Great video Pamai. Would you please let us know how we can use SQL within a workbook? i.e. the source is not a separate workbook but it a sheet within the workbook itself .

    • @VBAA2Z
      @VBAA2Z  Před 3 lety +1

      Thanks.
      You'll use in same way. Simply mention the path of ActiveWorkbook.

    • @imranbhatti8580
      @imranbhatti8580 Před 3 lety +1

      @@VBAA2Z thanks for the quick turnaround.

    • @VBAA2Z
      @VBAA2Z  Před 3 lety

      no probs.

  • @kinga334
    @kinga334 Před 4 lety +1

    Excellent tutorials!
    Can we work with password protected excel file too? Doesn’t work for me when locked.
    Please share example of how to delete records too. Thanks.

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      for DELETE SQL try
      SQL = "DELETE * FROM tableName WHERE FieldName = 'Sample Value';"
      call ConXL.Exe (SQL)
      Password protected excel file, in Excel you want to be able to pass the password in the connection string. There is a workaround though you want Create Excel obj, load excels up by passing the password.
      All the best!

    • @kinga334
      @kinga334 Před 4 lety

      @@VBAA2Z thanks works perfect.

  • @shadow_gaming_sk
    @shadow_gaming_sk Před 2 lety +1

    Can you please prepare the series basic to advanced

    • @VBAA2Z
      @VBAA2Z  Před 2 lety

      thanks for your suggestion

  • @KhalilYasser
    @KhalilYasser Před 4 lety +1

    Thanks a lot for this masterpiece of the tutorial. Can you please share the VBA codes?

    • @VBAA2Z
      @VBAA2Z  Před 4 lety

      Hi Yasser, code/project download are not available for this video. Please let me know if you're stuck / need help.

    • @KhalilYasser
      @KhalilYasser Před 4 lety

      @@VBAA2Z Can you attach the material codes so as to save the time for people who follow you my bro?

  • @big1975E
    @big1975E Před 3 lety

    Is there a way to use ADO to write data from one workbook into another? If not is there a way to write data to a closed workbook using a connection from another Excel workbook?

    • @VBAA2Z
      @VBAA2Z  Před 3 lety

      yes you can write data from one workbook into another

    • @big1975E
      @big1975E Před 3 lety +1

      @@VBAA2Z I know how to query data from a closed workbook my goal is to edit that data in my active workbook once queried and then write it back to the closed workbook editing the data in the closed workbook just by using the connection and not ever opening the closed workbook that the data was queried originally. Do you have a video showing how to do this using VBA?

    • @VBAA2Z
      @VBAA2Z  Před 3 lety +1

      Please follow same approach to pull, append, update data using the connection.
      Try this video, it is uses access db however the code will remain the same czcams.com/video/c9jkK6aRWnQ/video.html

  • @shadow_gaming_sk
    @shadow_gaming_sk Před 2 lety +1

    Hi I want online training training from you

    • @VBAA2Z
      @VBAA2Z  Před 2 lety

      Any doubt please comment here

  • @jaimec4572
    @jaimec4572 Před 9 měsíci

    Why all data are Stored into the sheets like String
    the data is store before the value has single quote in the cells like '1 , 'text how can i solve this

    • @VBAA2Z
      @VBAA2Z  Před 9 měsíci

      That's how some users store numbers are string to prevent from losing leading zeros or formats

    • @jaimec4572
      @jaimec4572 Před 9 měsíci

      @@VBAA2Z can be a solution for this?

  • @photogpphotogp7468
    @photogpphotogp7468 Před 3 lety

    How it's possible to check if a record exists in a access database with SQL and VBA?

    • @VBAA2Z
      @VBAA2Z  Před 3 lety +1

      Yes try something like this
      tb.Open "SELECT * FROM mytable WHERE ID = 1", connectionObj, adOpenForwardOnly, adLockReadOnly, adCmdText
      If Not SourceTb.EOF Then
      ' record exist.

  • @vanreg08
    @vanreg08 Před 3 lety

    Hi, where can I get the file. I want to learn and apply what you show. Thanks

    • @VBAA2Z
      @VBAA2Z  Před 3 lety

      Hi, you can download sample data used from below link.
      drive.google.com/file/d/1bo7FgZvOwbDYr5ATL4-SahwmmJRnVeuD/view?usp=sharing

    • @houstonvanhoy7767
      @houstonvanhoy7767 Před rokem

      @@VBAA2Z Please pin this to the top of the of comments, or better, put it into your explanations above the comments.