Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default External Database Lookup via ODBC

My users have asked me to add a function to a spreadsheet they use fo
quoting. They would like to be able to enter a part# in a certai
cell, click a button and have the part description, price, etc fill i
from a table on our iSeries via ODBC.

I've done very little VBA programming so I'm looking for some tips t
help me get started.

Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default External Database Lookup via ODBC

All from the top of my head, I don't have a database in front of me to test.

From the Data menu, select Get External Data | New Database Query.
Through a series of dialogs, you'll get to Microsoft Query.
You need to use a parameter in your criteria panel.
eg.
=[Choose a Part Number]

Then once you've returned the query to Excel it will create a table.
You need to right-click the table, edit the parameter and make it use an
existing cell (you may want to click the tick box which makes excel refresh
the query whenever that cell changes).

Rob


"rward68 " wrote in message
...
My users have asked me to add a function to a spreadsheet they use for
quoting. They would like to be able to enter a part# in a certain
cell, click a button and have the part description, price, etc fill in
from a table on our iSeries via ODBC.

I've done very little VBA programming so I'm looking for some tips to
help me get started.

Thanks


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel connection to ODBC database Poppe Excel Discussion (Misc queries) 8 April 24th 09 06:16 AM
Update database from ODBC query Richard Edwards Excel Discussion (Misc queries) 0 June 24th 08 09:22 AM
ODBC database query gneissgirl Excel Discussion (Misc queries) 0 November 10th 05 06:18 PM
ODBC Drivers to a SQL database David J. Monnin Excel Discussion (Misc queries) 0 September 14th 05 07:39 PM
how can I create a ODBC database in excel Deler9 Excel Worksheet Functions 1 July 31st 05 08:28 PM


All times are GMT +1. The time now is 11:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"