mysql

  1. M

    Error connecting to MySQL using VBA (3709 error)

    Hi all, Below is a code that will run every time a particular excel file is opened in order to block unauthorized access. For this the idea is to check the motherboard serial of the computer and verify if it is registered in a mysql database. If it is not registered it closes the file and...
  2. O

    MySQL to Excel

    Good day ! We have MySQL database where we update our data. Basically it is product database. But we also need to import data from there to Excel. I have used csv import so far and it works ok, but have some problems.. With that Excel sheet we like to color code some rows. ie. we look...
  3. L

    Retrieve 'message' from MySQL when executing command through VBA - espcially when doing InFile

    I think my Title has described my problem just fine. I do an InFile and want to know if there is any warnings or errors. How do I get the 'message' from MySQL into a VBA variable? I do a regular oconn.execute(qry) Thanks in advance! Lasse
  4. V

    How to Make a CSV with HTML content EXPORTABLE to MYSQL - CSV_LOADDATA [self solved]

    I could not solve the above task, and i wanted to post a query on excel forum. But then i thought lets try once more changing delimiter AND I CAME BACK WITH SOLUTION for MY OWN Task. Anyway here it is (what i typed here before)...
  5. B

    Issue connecting to MySQL db through PowerQuery

    Ladies and Gents, I've come across an extremely puzzling issue. I'm attempting to connect to a MySQL db through PowerQuery. I downloaded the mysql connector (originally version 6.6.5 but rolled back to 6.4.6 in an attempt to resolve this issue) and connected to the db. So far so good. It asks...
  6. A

    SQL statements in VBA - Problems with Inner Join and Outer Join (4 tables)

    I am using SQL statements in VBA and I am having trouble joining 4 tables located in separate worksheets named "Stn", "Db", "Param" and "Ol" I have 4 tables: "Stn" with headers: Station_Name, Station_Abbreviation, Station_Order "Db" with headers: Station_Name, Sample_Date, Parameter_Name...
  7. N

    COUNTIFS on dates returned from MYSQL Query

    I'm struggling to get COUNTIFS to work when the dates I am tying to count are returned from a MYSQL table. The formula I have used is: =COUNTIFS(Smart!$Q$2:$Q$316,">"&(D12),Smart!$Q$2:$Q$316,"<"&(E12)) The actual dates are within the MYSQL table...
  8. K

    What's wrong with my VBA code?

    Hey guys, Trying to create a macro button that, when pressed, populates empty columns, based on a match between Part_ID in excel sheet called BOM and Part_ID in database table called materials joined with tables manufacturers and vendors The code is as follows: <code style="font-family...
  9. K

    Filling data from MySQL db into excel sheet, where ID matches

    Hey everyone, I haven't been able to find any similar examples online to what I'm trying to do.. hoping someone can help out here I have a database in MySQL called 'materialsdb' which holds tables for Materials, Manufacturers and Vendors. Materials is the main table of use, linked with foreign...
  10. K

    Using VBA to pull data from mySQL to excel with Macro button

    Hey everyone, So I have a materials database made up in mySQL, which holds linked tables for materials, manufacturers and vendors. I also have a Bill of Materials (BOM) in excel, in which there are empty columns for manufacturers, vendors, etc. The goal is to have a Macro button that, once...
  11. S

    Pass global VBA variable to Power Query

    Hello! I have a query to pass to mySQL database through Power Query. In essence, it looks like this: SELECT * FROM table WHERE col1 LIKE "%abc%" OR col1 LIKE "%xyz%" OR .... It is a part of more complex query that joins several tables . In my workbook I have a list of names ("abc", "xyz"...
  12. S

    Pass global VBA variable to Power Query

    Hello! I have a query to pass to mySQL database through Power Query. In essence, it looks like this: SELECT * FROM table WHERE col1 LIKE "%abc%" OR col1 LIKE "%xyz%" OR .... It is a part of more complex query that joins several tables . In my workbook I have a list of names ("abc", "xyz"...
  13. J

    Excel VBA code to connect to SQL and show data on new Work sheet

    Hi I am trying to create an excel speadsheet that will ask for a job number to be entered before retrieving data such as Job address, job type etc for that job and populate the page like a job sheet.. I am using Mariadb on a Synology nas to store the data.. I have read several threads here and...
  14. K

    How to call Excel macro from PHP/MySQL

    Hello, I have written a standalone Excel application including a VBA macro called 'GetImage()' that creates and exports image files to a given folder on the server. Currently the macro can be initiated manually by clicking on a button within Excel, however I would like to know if it is...
  15. J

    VBA Connect to MYSQL Driver Error

    Hi, I am trying to connect to a hosted MySQL database running 5.0.96 so I have installed the latest driver from MySQL site "Connector/ODBC 5.2.6". But I get this error: [Microsoft][ODBC Manager] Data source name not found and no default driver specified. I am able to connect if I use the ODBC...
  16. L

    Database Management Excel

    Hello everyone! I am new to the forums and hope to learn a lot. Thanks in advance for taking your time to read the question and providing me with assistance. I am also currently researching the issue myself. I am currently working with a MySQL database and would like to somehow edit it and...
  17. U

    VBA code to fetch data from Mysql DB in Mac Excel 2011

    I was using ADODB code in Windows to fetch data from Mysql Database and it was working fine. However, I can not seem to get my Excel workbook (using ADODB) to work with Excel Mac 2011. After a lot of googling, I found an ODBC connector from Actual tech and I was able to fetch three rows using...
  18. K

    How to link Excel/VBA to MySQL?

    Hello, I have created the following "GetResult" VBA macro within Excel to apply a custom formula to the value of a given source cell within a hidden sheet, and display the result in a target cell on a visible target sheet: Sub GetResult(SourceCell as String)...
  19. A

    Insert Record from Excel to MySql using VBA

    Hi To All, For one of my project I need to create a VBA module for export all data in active workbook's active sheet to MySql database table. At present I am using following code which is successfully doing as required: Public Sub TransMySql() Height =...
  20. U

    PowerPivot and mySQL - is it really impossible?

    I've trawled the depths of Google (beyond page 20 of search results!) to try and find a solution to my current problem. Given that I haven't found a solution I'm tempted to believe that it's impossible but being an eternal optimist I've now decided to post something in here. Outline of what I...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top