Vivirtruvian
Registered User.
- Local time
- Today, 16:44
- Joined
- Jun 20, 2017
- Messages
- 19
Hi all,
This is probably a super simple question, but DLookup and I never seem to get along.
I have an update query that I wish to run that will use the DLookUp function to update an item description based on a material number. I have three tables in play here:
1. tblImportTemp: a temp table that receives the .csv data
2. tblProtein: the main table with the information to be updated
3. tblProductList: a product table that holds all the data for each material (eg. material numbers, descriptions)
What I wish to do is use a DLookUp that will take the field in the temp table ([tblImportTemp].[F2]) which is the material number, look this number up in the product table and output the description of the product to the main table.
I have started with the following which yields no results:
DLookUp("description","tblProductList","[materialnumber]= [F2]") <- I knew that wasn't the correct way to order the argument hence the next comment!
I've tried a heap of variations to the above using & and ' characters but I am really throwing spaghetti at a wall to see what sticks to be honest.
For more info, tblProductList.materialnumber is a Short Text and tblImportTemp.F2 is a Number.
Thanks in advance to anyone who looks into this.
This is probably a super simple question, but DLookup and I never seem to get along.
I have an update query that I wish to run that will use the DLookUp function to update an item description based on a material number. I have three tables in play here:
1. tblImportTemp: a temp table that receives the .csv data
2. tblProtein: the main table with the information to be updated
3. tblProductList: a product table that holds all the data for each material (eg. material numbers, descriptions)
What I wish to do is use a DLookUp that will take the field in the temp table ([tblImportTemp].[F2]) which is the material number, look this number up in the product table and output the description of the product to the main table.
I have started with the following which yields no results:
DLookUp("description","tblProductList","[materialnumber]= [F2]") <- I knew that wasn't the correct way to order the argument hence the next comment!
I've tried a heap of variations to the above using & and ' characters but I am really throwing spaghetti at a wall to see what sticks to be honest.
For more info, tblProductList.materialnumber is a Short Text and tblImportTemp.F2 is a Number.
Thanks in advance to anyone who looks into this.