Update SQL using Excel VBA

preview_player
Показать описание
This is the 2nd part of the Connect to SQL video, now that we have connected the SQL customer table to Excel we now want to be able to update the records using Excel and have them automatically update in SQL.

Please like and leave a comment if you find this useful and subscribe.

Enjoy
MM
Рекомендации по теме
Комментарии
Автор

Brilliant, thank you! You just made me look like a rock star!

lleonsands
Автор

The reason for your problem with the if statement onID are that ID is declered as Integer therefore the line should be "If ID = 0 Then", and the reason that it works on Age is because you didn't write as integer after AFE is has been decleared as Variant

bentlauridsen
Автор

Really good tutorial but why have you not used an excel table(list object)?

leegarrett
Автор

i was finding this way from last 3 weeks
day night R&D

best but i will apply it in morning in my office

hope this will work

makali
Автор

Great videos. Is it possible to get the vba code? To download it. Both for this and the other videos you did?
Or can you share the excel file?

patrikrosen
Автор

Great vdieo. Can you please share the code of maybe the excel?

ekremacar
Автор

Can I use the Command button for the worksheet change event? I don't want to trigger the Worksheet_change event automatically.

pratikt
Автор

ID Must be the primary key and Auto Increment.

rv
Автор

What if my row is number such as 2020 as a row . How de we declare in the VBA statement ?

muhammadasrul
Автор

Can you please update this video again because there is some issue which i am facing for target.row i have tried many time but it is not working

makali
Автор

THE MISMATCH ERROR IS BECAUSE OF MISSING ' ' ON ID TO INDICATE BLANK

petermaina
Автор

Hi, could you share your code on webpage or google drive? It looks like a solution to my problem, but analyzing the code based on the video is ...difficult ;-)

danielbalcer