vlookup into table from query

araza123

New member
Local time
Yesterday, 20:00
Joined
Apr 6, 2022
Messages
24
Hi guys,

the title kinda describes what is need. Is is possible to do this? I have a query I ran with data. Theres a field called "LTV". I need to replace the data from this field to a table I have created. the table also has a LTV field. I have a common unique identifier to do the lookup on if this was excel but not sure if its possible in access. Thanks for your help
 
DLookup is the equivalent to Excel's VLookup

Something like this in a query

luLTV:Dlookup("LTV","OtherTable","UniqueID=" & [UniqueID])

replace field and table names as required
 
Join the tables using your unique identifier?
 
Dlookups have no place in queries.

Instead you use SQL and JOIN any datasources you need. In design view, bring in whatever table has your LTV field, JOIN it to whatever existing datasource it should go to using the field that connects them, then bring down the LTV field into the query below to show it.

Here's a great source for learning about SQL:

 

Users who are viewing this thread

Back
Top Bottom