entry made easy

kfboren

New member
Local time
Today, 18:11
Joined
Aug 3, 2001
Messages
8
I would like to be able to have a table that lists part numbers and descriptions. In a form I would like to enter the part number and have the description automaticlly entered.
 
Use DLookUp function in the AfterUpdate event of the ProductCode field to set the value of the ProductDescription field.
 
Thank you for the help. I have tried several ways with the DLookup. Would you be so kind as to show me an example?
 
Pat I tried looking at the Orders database entry form. Mine does not have any combo box for the customer. Therefore I am still unable to complete this task. Please advise further.
 
I could use some help with the autolookup query. Any tips or tricks.
 
I have a little time on my hands...Let me try to show you what Pat is saying to do.

Create a form based off of the table that stores your part number descriptions. Put all the fields on your form you need to show. i.e. part description.

Show your toolbox and find the button that says "combobox". Drag it over and put it on the form. A wizard will start. You want to select Option #3 "Find records that match my selection". Your combo can be based off of any table or query that stores the Unique value to identify your partno. Based on what you have said thus far, I'm guessing you have it in the same table as the form you just built. You should be sure to include the PartNo as one of the fields you want in your combobox.

When you are finished, goto form view and use your combo. When you select the part no from this list, the fields below should reflect the description related to that part no. You can also begin to type in the part no and access will fill it out as you type.

This automation allows you to store much more information. Dlookup is used for display only. Say if you wanted to show a piece of information from another table not used in your form or combo.

If you still want to use it, it goes basically like this.

Unbound textbox is:

=Dlookup("NameOfFieldInTableYouNeed","NameOfTableYouNeedInfoFrom","[FieldNameThatMatchesForm]=Forms![FormNameYouAreOn]![FieldNameThatMatchesTable]")
 
Couldn't you just have a combo with two columns listing part no. and description?
 
Hey I got the results that I wanted on the form however the description does not post on the table. Any suggestions??
 

Users who are viewing this thread

Back
Top Bottom