Wednesday, September 21, 2016

Fast Solution to Problem: connecting EXCEL to mysql and joining tables to get data

connecting EXCEL to mysql and joining tables to get data

Hi All

I am trying to import data from an mysql data base into Excel.
I have tried to use and following website as an example, but I can not get the parameter button to work.

http://www.codeproject.com/Articles/415055/Oracle-data-into-Excel-sheet

What I am tying to do is this.

I have so two tables

Table one
client
id          Name         phone
1         john            14253687
2        sam              45236587
3        jim                45236589

Table two
sales
id        client        total
1         2             1230.00
2          1            4523.22
3         3              14.22

My EXCEL sheet will look like this.
sales id           Name        total

Now when I enter the sales id into A4,A5, A6, etc, etc it gets all the information from both tables via a join and puts the information into the right cells.

Can anyone help with this?

Keys to the Problem connecting EXCEL to mysql and joining tables to get data

Download SmartPCFixer to Fix It (Free)

Hi,
 
1.open connection
2.
start looping
dim x as long
x=0
for each cl in Sheet2.Range("A1:A50")
strSql =
"SELECT sales.id, client.name, sales.total " & _
"FROM client, sales " & _
"WHERE sales.client=client.name AND sales.id ='  " &  cl.value &  "  ' "

 
rec.open strSql, conn, etc
If rec.EOF = False Then
   sheet1.Range("A5).Offset(x,0) .CopyFromRecordset rec
End If
x=x+1
rec.Close
next cl
 
Regards
JY

Running System Update Readiness Command

On running the System Update readiness Command, it will Detect & Replace Incorrect Registry data with the Correct one. Which may ultimately Solve connecting EXCEL to mysql and joining tables to get data in Windows.

  1. Open CMD as Administrator by Simply Right Clicking on Start button > Command Prompt (Admin).
  2. Now Type or Copy paste "DISM.exe /Online /Cleanup-image /Scanhealth" and hit Enter,
  3. Now again Type or Copy paste this "DISM.exe /Online /Cleanup-image /Restorehealth" and hit Enter.
  4. Close the Command Prompt Window because we are done.

Try and see if you still get the same error connecting EXCEL to mysql and joining tables to get data in your Windows.

Note: You may be prompted to enter your administrator's password when you try to execute certain system tasks!

Recommended Method to Fix the Problem: connecting EXCEL to mysql and joining tables to get data:

How to Fix connecting EXCEL to mysql and joining tables to get data with SmartPCFixer?

1. Click the button to download SmartPCFixer . Install it on your system.  Run it, and it will scan your computer. The errors will be shown in the scan result.

2. After the scan is done, you can see the errors and problems which need to be repaired.

3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in this software. Like dll downloading, junk file cleaning and print spooler error repair.


Related: Best Way to Download Satellite L645-SP4004M WinDVD BD for Toshiba v.10.0.6.110 driver,Download Toshiba Satellite C655D-S5057 Wireless LAN Driver v.8.0.0.258.0,Method to Update & Download Toshiba Satellite L650-BT2N22 Web Camera Application v.2.0.3.37 driver,How Can You Update & Download Toshiba Satellite L775D-S7220GR Value Added Package v.1.6.0130.640204 driver,Download Toshiba Satellite Pro L750-SP5176FM Sleep Utility v.1.4.0025.000101 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.8.17.12.6686,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.11.6.0.1030,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.9.3.0.1019,Method to Update & Download ASUS K41VD Intel INF Update Driver v.9.1.1.1015,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: computer...speed up to original performence [Solved],Configure XP mode to automatically attach USB Devices? [Solved],[Solved] Computer shut downs and restarts while browsing a website,How Can I Fix - computer needs updates, will not let me update.?,How to Resolve - Computer shut down while playing online game.?,Can't change homegroup sharing permission,Can't connect XP shared printer to Win7 except as a local printer.__,Can You Connect the LAN Adapter for Wii On your Windows 7 Laptop?,Can These Files Be Deleted,Can’t install Microsoft Flight Simulator X Gold Edition error 1722

No comments:

Post a Comment