Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Having data source and query code issues....

This should be very simple... I think I am pulling a blonde moment!

I am creating a quote template for my husband in excel. I set up a master
products table (spreadsheet) as my data source so he can change all of his
numbers in one location only. I then created a sheet for the actual quote
where I am using dropdownlists (ddls) based from this source for him to
select a product and then I want to have the number fields fill automatically
based on the product selected. Simple enough I have done it a million times
with SQL tables. But where do I write my SQL code to query my datasource for
the ddl ... I am not used to writing code for excel. The syntex is different
and locations seem to be funky!

Thanks in advance for pointing me in the write directin.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Having data source and query code issues....

You can do this without programming.

VLOOKUP formulas will pull the data to appropriate cells.

See Debra Dalgleish's site for more on VLOOKUP and Data
Validation lists for entering the choices.

http://www.contextures.on.ca/xlFunctions02.html

http://www.contextures.on.ca/xlDataVal01.html

Note the section on using DV lists from another worksheet by naming the list.


Gord Dibben MS Excel MVP

On Sun, 4 Nov 2007 10:58:00 -0800, Samantha
wrote:

This should be very simple... I think I am pulling a blonde moment!

I am creating a quote template for my husband in excel. I set up a master
products table (spreadsheet) as my data source so he can change all of his
numbers in one location only. I then created a sheet for the actual quote
where I am using dropdownlists (ddls) based from this source for him to
select a product and then I want to have the number fields fill automatically
based on the product selected. Simple enough I have done it a million times
with SQL tables. But where do I write my SQL code to query my datasource for
the ddl ... I am not used to writing code for excel. The syntex is different
and locations seem to be funky!

Thanks in advance for pointing me in the write directin.


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
Vlookup issues when source data is in another workbook? Kathy L.[_2_] Excel Discussion (Misc queries) 5 February 26th 09 02:56 PM
Change data source for MS Query TonyL Excel Discussion (Misc queries) 2 September 11th 08 10:44 PM
Data Source Trust Issues NervousFred Excel Discussion (Misc queries) 2 July 25th 08 03:40 PM
Data Source for MS Query Suzseb Excel Discussion (Misc queries) 0 May 24th 06 08:09 PM
query source code Mel[_7_] Excel Programming 1 August 29th 03 11:24 PM


All times are GMT +1. The time now is 06:18 PM.

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"