DLookups

Grettons

New Member
Joined
Sep 22, 2008
Messages
33
Hi,
I need to create a look up for a description field based on which part code is selected.

I've done a Combo box with all of the Part codes listed but I then need to have the description field automatically look up the code and bring through the description.

Many thanks

Grettons
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
it's in general simple task but now i'm not sure what we are talking about - a userform or a sheet.
where should the description go to - a cell or a textbox?
give some details.
 
Upvote 0
I need to update the totals of a sub form onto the main user form in Access.

If it was in excel it would be something like =Vlookup(code,TBL_Partslist, 2,0)

"TBL_Partslist" = list of part codes (Column A) and descriptions (Column B)

I'm just not sure how to do lookups in Access and i'm not sure if it complicates things because it's calculating accross forms?

I hope this makes things clearer.

Cheers Grettons
 
Upvote 0
isn't the form linked to the partlist table - if it is no lookup is necessary.
or just create a query and put the part code as a filter then display the query result
sorry but it's been a while since i did access and have no code or examples around.
 
Last edited:
Upvote 0
Hi

your combo box could have the Descriptions as well - though these do not need to be displayed (set column width to 0).

you could then reference the relevant column e.g.

partno=me.ComboO
description=Me.Combo0.Column(1)



atb
sumuwin
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top