Integrate Excel, VBA and SQL. Simplified and powerful
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
Sir you’ve no idea how much all these videos have helped me at work. Thanks much.. Stay blessed!
So nice of you. Glad to hear!
This is best and most detailed VBA SQL tutorial I have come across. Thank you so much
You're very welcome!
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!!
Yours is the best VBA CZcams channel!!!
Keep it up!
Wow, thanks!
Very simplified and easy to follow. thanks as always, appreciate your efforts!
Glad it was helpful!
Thanks for another cool video.
Never knew about this.
Glad to help
Best tutorial, processional and practical indeed
Thank you Cheers!
you are awesome, many thanks
Glad it helped
You're the best mentor. Thanks Pamai.
My pleasure!
This is brilliant. Thanks for another useful video.
Glad it was helpful!
Thanks for this useful video. Please show how to compare 2 tables and return the differences and also find the variance between 2 tables
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);
Thank you for another great tutorial. Keep going
My pleasure!
Thank you!!!! Just what i needed!!!!
You're welcome!
Very helpful tutorial thank you
Glad it was helpful!
Very useful video. Thanks
Glad it was helpful!
Thank you sooo much
you're most welcome!
eye opener for me :) thanks a lot!
Glad to hear that!
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
My pleasure. Have you seen below video? Anything specific you are looking to achieve?
czcams.com/video/dIqoXYy_Clg/video.html
This is powerful. Thanks!
You're so welcome!
Amazing tutorial. Thanks to Pamai
Thanks for watching!
Thank you soo much sir. You’re awesome
So nice of you
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
@VBA A2Z Please pin this to the top of the of comments, or better, put it into your explanations above the comments.
Thank you so much
Any time
While using a SQL statement within the rs.Open method, you need to use the argument CommandType as "adCmdText" instead of "adCmdTable".
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
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.
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 .
Thanks.
You'll use in same way. Simply mention the path of ActiveWorkbook.
@@VBAA2Z thanks for the quick turnaround.
no probs.
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.
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!
@@VBAA2Z thanks works perfect.
Can you please prepare the series basic to advanced
thanks for your suggestion
Thanks a lot for this masterpiece of the tutorial. Can you please share the VBA codes?
Hi Yasser, code/project download are not available for this video. Please let me know if you're stuck / need help.
@@VBAA2Z Can you attach the material codes so as to save the time for people who follow you my bro?
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?
yes you can write data from one workbook into another
@@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?
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
Hi I want online training training from you
Any doubt please comment here
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
That's how some users store numbers are string to prevent from losing leading zeros or formats
@@VBAA2Z can be a solution for this?
How it's possible to check if a record exists in a access database with SQL and VBA?
Yes try something like this
tb.Open "SELECT * FROM mytable WHERE ID = 1", connectionObj, adOpenForwardOnly, adLockReadOnly, adCmdText
If Not SourceTb.EOF Then
' record exist.
Hi, where can I get the file. I want to learn and apply what you show. Thanks
Hi, you can download sample data used from below link.
drive.google.com/file/d/1bo7FgZvOwbDYr5ATL4-SahwmmJRnVeuD/view?usp=sharing
@@VBAA2Z Please pin this to the top of the of comments, or better, put it into your explanations above the comments.