Solved

Excel query advice

Posted on 2011-09-29
3
172 Views
Last Modified: 2012-05-12
hi all

if i have a column A in excel with stock codes how do i write a query that will do the below for me in column B - i know how to create the connection and write the query i just don't know how to reference an excel entry :@


select QtyOnHand from InvWareouse where Stockcode = "stockcode from excel" and Warehouse= 'GG'
0
Comment
Question by:malraff
3 Comments
 
LVL 10

Accepted Solution

by:
ukerandi earned 250 total points
Comment Utility
See below link it will help you. i think you need to write VBA with ADO programme
http://support.microsoft.com/kb/321686
0
 
LVL 37

Expert Comment

by:Neil Russell
Comment Utility
Where is the Warehouse field?

Can you post a sample spreadsheet file?
0
 

Author Comment

by:malraff
Comment Utility
I GOT THIS DONE WITH VB,

sorry i thought i could just do some sort of lookup from excel!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now