#1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Dlookup?

Hi folks,
Does any one know a way to automatically populate a cell in access with info
from a database based on a value entered in another cell?

For example I would like have a column "Part Number'' and when someone
enters a part number in one of that columns cells, the database table,
tblPART is queried to return the description where PART_ID = the part number
in the first cell and places the value into an adjacent cell. In my case
PART_ID is the primary key for tblPART so I will only get the one value that
I want.

In access i would do something like this with a dlookup statement, but i
have no idea where to begin with excel!

Thank you in advance for your help!
M.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Dlookup?

Hi M,

I don't know about Access and dlookup, but it sounds like VLOOKUP() in Excel,
like in

=VLOOKUP(A1,Sheet1!A1:B7,2)
( =VLOOKUP(LookupValue,LookupRange,Column,Exact))

or to hide the error when the lookup cell is empty
=IF(A2="","",VLOOKUP(A2,Sheet1!A2:B8,2))

Use the Insert Function Wizard and refer to Excel Help for details.

HTH
Anders Silven

<M.Streeks skrev i meddelandet ...
Hi folks,
Does any one know a way to automatically populate a cell in access with info
from a database based on a value entered in another cell?

For example I would like have a column "Part Number'' and when someone
enters a part number in one of that columns cells, the database table,
tblPART is queried to return the description where PART_ID = the part number
in the first cell and places the value into an adjacent cell. In my case
PART_ID is the primary key for tblPART so I will only get the one value that
I want.

In access i would do something like this with a dlookup statement, but i
have no idea where to begin with excel!

Thank you in advance for your help!
M.



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



All times are GMT +1. The time now is 02:07 PM.

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

About Us

"It's about Microsoft Excel"