Get Data from Access Database using Excel VBA

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024
  • If we can automate the process of getting data from an Access database using Excel VBA, we can do more powerful analysis. Earlier we learnt how to get data from an Access database using a manual procedure:
    www.exceltraini...
    More details available here:
    www.exceltraini...

Комментарии • 58

  • @stevethomas1119
    @stevethomas1119 5 лет назад +2

    Used many of your videos all very helpful many thanks

  • @Yespisan
    @Yespisan 4 года назад +1

    You're a hero. You helped me a lot. I wish you a great future

    • @Exceltrainingvideos
      @Exceltrainingvideos  4 года назад

      Wow, thanks! Please share the VBA lessons with your friends too.

  • @rajankelu3617
    @rajankelu3617 9 дней назад

    Sir my name is Rajan iam following your excel clasess in youtube channel but sir, i can't see a video for update msaccess database from excel vba, so sir i kindly request you to create a video for that

  • @alexanderjones4472
    @alexanderjones4472 2 года назад

    This is great! Still pretty new to VBA and I managed to follow along and make it work. Thank you!!!

  • @manjunathvinod2093
    @manjunathvinod2093 5 лет назад +1

    Thank you sir. I learnt so many things in Excel to the help of your excel videos

  • @charlesdawnbeltran9603
    @charlesdawnbeltran9603 6 лет назад +2

    Thanks for the great video. What will be the argument if MS Access is protected by password?

  • @krn14242
    @krn14242 9 лет назад

    Thanks Dinesh, great code. It is true what you said about checking the code copied from yr website. Did this the other day with your code on inserting image into userform. Your quotations did not render correctly and I had to delete and retype those quotation marks in my code.
    Thanks again.

  • @understandmaketoeasy9845
    @understandmaketoeasy9845 3 года назад

    Thank you sir...please make more video for complete access data connectivity through vba code.

  • @abuwaleed1191
    @abuwaleed1191 5 лет назад

    Very Good video, Im trying to do same with splitted access database, but no success. Please advise for any way to get data from a front end splitted access file.

  • @filmsvelly
    @filmsvelly 6 лет назад

    I found this video very helpful, thanks for such contents, I want to ask you something relevant to this video that once the record fetched then on next click on button I want to fill next row, please suggest me something.

  • @gecheung1155
    @gecheung1155 4 года назад

    Great video, do you have a video showing how to extract data from excel to access , code for writing specific data /cells

  • @custompanelcontrols8607
    @custompanelcontrols8607 2 года назад

    i am looking for a way to pass the value in cell A1 as the search value, does anyone know how to make that work? instead of 3 i am using my variable for A1 "var" and i keep getting "Data type mismatch in criteria expression" i tested the code i am properly reading the value in the cell and if i hard code a number it works, just not with my variable

    • @Exceltrainingvideos
      @Exceltrainingvideos  2 года назад

      This happens when data types don't match. For example, If you specify text criteria for a numeric or date/time field, you'll get this error.

  • @TheNeilsolaris
    @TheNeilsolaris 4 года назад

    Thanks for the tutorial. I'm using Access 2007. Will your code work with my version, or do I need to make any adjustments? Thanks.

  • @rajb4549
    @rajb4549 3 года назад

    Hi Dinesh - Thanks for a great clear video. If I have, say 400,000 records (say 6 fields)from which to filter records based on one filed one field - will excel filter be quicker or querying the Access database? What if its "filter as you type" filter? Does the answer change if its 200,000. Thanks.

    • @Exceltrainingvideos
      @Exceltrainingvideos  3 года назад

      This link will help: ruclips.net/video/2qi43b04TSc/видео.html
      You can also search this channel using the keyword 'filter'.

  • @khadigagouda4939
    @khadigagouda4939 4 года назад

    How can I add data in excel manually and get the rest of the data from access DB, for instance if I right a name in excel, Access checks if there is that name in its db and returns for instance the persons age and school

    • @Exceltrainingvideos
      @Exceltrainingvideos  4 года назад

      This link will guide: www.exceltrainingvideos.com/tag/how-to-merge-data-from-two-excel-worksheets/

  • @SuperHanme
    @SuperHanme 4 года назад

    Really helpful. Thank you very much.

    • @Exceltrainingvideos
      @Exceltrainingvideos  4 года назад

      Glad to hear that! Please share the VBA tutorial with your friends also on social media.

  • @wynnelim7728
    @wynnelim7728 4 года назад

    Hi, thank you for the informative video. May I know if I want to access the database on Access without opening the access file, is that possible?

  • @mayurshingala5103
    @mayurshingala5103 6 лет назад

    hello sir, i want to log data in excel from access database using VBA via button in my SCADA application... give me some example of this type of scripts
    thanks in advance

  • @vinays6215
    @vinays6215 6 лет назад

    Good works sir, Sir please can I know how to refresh 10 to 20 excel sheet in the folder from a different link connection.
    I mean, I should not open each excel file and refresh then ones I need to refresh. need to assign one button to refresh 10 to 20 excel file in a folder. please let me know sir.

  • @officeprofessionals149
    @officeprofessionals149 4 года назад

    Thanks it's very useful!
    I've data base that is password protected (Password=database2020), How can I export data from that Access table by passing password ?

  • @Jhoyskee
    @Jhoyskee 7 лет назад

    Hi Dinesh, I have this code entered : Source = "SELECT * FROM ProdTABLE WHERE OPENDATE >= W1StartDate and OPENDATE < W1Enddate"
    W1StartDate and W1EndDate is a date inputted in an input box:
    Dim W1Startdate As Date, W1Enddate As Date
    W1Startdate = Application.InputBox("Enter the Start Date")
    W1Enddate = Application.InputBox("Enter the End Date")
    but i cant seem to have an output and keep having the error " No value given for one or more required parameters" would like to seek your help

    • @Exceltrainingvideos
      @Exceltrainingvideos  7 лет назад

      Have a look at this link: www.exceltrainingvideos.com/get-data-from-access-database-using-excel-vba/

    • @Exceltrainingvideos
      @Exceltrainingvideos  7 лет назад +1

      This line of code which extracts data from the Northwind database will provide guidance:
      Source = "SELECT * FROM Orders WHERE [Order date]>=#04/01/2006# and [Order Date]

  • @presenttechnology7731
    @presenttechnology7731 6 лет назад

    Dear sir,great your all education tutorial.

  • @afyaclub
    @afyaclub 2 года назад

    HEY GREAT JOB

  • @vamsikrishna304
    @vamsikrishna304 6 лет назад

    Hi sir, could you please help me to get data stored from access database to user form. Data available in database should appear to user randomly without duplicate. if you have any videos please post to me.

    • @Exceltrainingvideos
      @Exceltrainingvideos  6 лет назад

      Search my RUclips channel. playlists or my website -www.exceltrainingvideos.com/

  • @techlife5537
    @techlife5537 7 лет назад

    It's Very good and helpful.....

  • @ramamuruthyrevoori8255
    @ramamuruthyrevoori8255 5 лет назад

    Thank u Sir, But we need Source = By Cell Value How to write Code
    means we have 50 tables in a access db , we want data from cell value of table
    please suggest me

  • @dineshnagraj4496
    @dineshnagraj4496 3 года назад

    Hi Sir, this is very usefull video for me. I need a help, In place of job title 'owner', I want to use a variable for dynamic value purpose and want to use under for loop. My variable is rmname, I stored rm names in this variable, I tried as follows,but it's not working..
    Source="select*from Revenue where RM= " & rmname & " ".
    Please help, how to use variable in this syntax correctly..thank you..

  • @excelexcerise5393
    @excelexcerise5393 4 года назад

    Sir how to append data in Table access using excel VBA

    • @Exceltrainingvideos
      @Exceltrainingvideos  4 года назад

      If I've understood your question then this VBA tutorial will guide: www.exceltrainingvideos.com/get-data-from-userform-into-table/

  • @RatneshVermaRtn21
    @RatneshVermaRtn21 6 лет назад

    Hello Sir, how can I pass multiple queries at same time?

  • @divakars1153
    @divakars1153 2 года назад

    Connect =connect&"Data source="&DBFullName&";"
    This syntex error occurred plz solve the problem

    • @Exceltrainingvideos
      @Exceltrainingvideos  2 года назад

      Check your code here: www.exceltrainingvideos.com/get-data-from-access-database-using-excel-vba/

    • @josejn2007
      @josejn2007 Год назад +1

      You should type spaces on both sides of the "&" character: Connect = connect & "Data source=" & DBFullName & ";"

  • @karthikkr3572
    @karthikkr3572 4 года назад

    Sir,
    In Open connection command,
    Connect=Connect&"Data Source="&DBFullName&";"
    'Compile error: Expected end of statement' is coming. Can you help me??

    • @Exceltrainingvideos
      @Exceltrainingvideos  4 года назад

      Try recording the process.

    • @karthikkr3572
      @karthikkr3572 4 года назад

      Sir, i could extract the data under the text type columns only with this program. If i have to extract a data of certain date from entire data, What could i have to change in this program..

    • @Exceltrainingvideos
      @Exceltrainingvideos  4 года назад

      This VBA lesson will help: www.exceltrainingvideos.com/tag/extract-data-from-sheet1-to-sheet2-based-on-dates-with-vba/

  • @DeNice10000
    @DeNice10000 7 лет назад

    Thanks, you are the man.