Update MySQL database with Excel using Microsoft Query

ABL_Leblanc

Member
Join Date
Oct 2013
Location
Québec
Posts
10
Hi,

I'm using Excel and a MySQL database to store data from an AB PLC.
Using Microsoft query, i can see data from the database in Excel but I can't change it in a dynamic way.

I've modified the command text (in Data-->Connection-->Properties-->Definition - or something like that ... My Excel is in french :D).
I've remplaced the "SELECT table_0.field FROM database.table table_0" by "UPDATE database.table table_0 SET table_0.field='I3' "

This allow me to update all of the lines of the table by the characters "I3" but I would like to be able to enter a value in Excel and update a line of the table with this value.

Even if my problem is'nt directly related to PLC, may be someone have already done this before ?

Thanks for any help .


Ps : Sorry for my english :whistle:
 
Last edited:
If you import a table into Excel using Microsoft Query the default setting gives you read only access. If you open the table using the full MS Query rather than the Wizard you can select "Allow Editing" from the Records menu which will allow you to edit records directly in Excel.
 
Ok, so I can't modify the data directly in the Worksheet ? Or is there a way to integrate the full Microsoft Query functionnalities ?

PS: I've uploaded a screenshot with the MS Query window to be sure that we talk of the same thing :).

Full Microsoft Query.jpg
 
Last edited:

Similar Topics

How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
108
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
96
Hi All, we've recently upgraded from FTView SE v10 to v12. Since the upgrade we've been having a problem where the HMI is slow to update tags in...
Replies
0
Views
90
Hi, I have an iFIX 5.5 project (Windows 7) that needs to be updated to version 6.5 (Windows 10). iFIX communicates with the "Siemens Industrial...
Replies
1
Views
174
Hi I have a number of the older PanelView Plus 600 HMI's (2711P-T6C20D, Ser D) that I want to update to the latest firmware. I believe that the...
Replies
10
Views
466
Back
Top Bottom