473,383 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Perform Vlookup function in access

Hi,

I would like to perform Vlookup in access.

Eg. I have two Tables

Code table
Code --- No
{ ------- 0
} ------- 1
A ------- 2
B ------- 3
C ------- 4
D ------- 5

( I have used this (----------) for clear understanding)
Sale Table
SaleCode SaleNo
}
A
A
{
{
B
C
B
I would like to Vlookup SaleCode in Code and get respective Record i.e No. in SaleNo.
Can any one help me perform this task
Jul 23 '07 #1
4 19943
damonreid
114 Expert 100+
Just make a query and link the respective fields.
Jul 23 '07 #2
Twanne
65
I use dlookup for this (I think). Don't understand exactly what you are trying.

varName = DLookup("The field you need", "The table you look in", "The value you want to match= " & The value you are searching)
Jul 23 '07 #3
Just make a query and link the respective fields.
thanks, and how do i link them in query. but i would like to perform a function similler to Vlookup in excell. im trying this

open update query > in the "field" name i gave name of the field where i want to up date > in the "update to" i gave Dlookup("field","table name","field(in table i want to lookup data from)")

but im not able to lookup the values in the master table

how do i perform this task in access query, please explain step by step process
Jul 31 '07 #4
damonreid
114 Expert 100+
Simply make a new query and pull in the two tables, Access should automatically like the the correct keys on the tables (if it doesn't you can do it manually). Then pull all your required fields down in to the bottom section of the query and when you run it the information will be linked by your key (what you would look up using a H/V/D Lookup.
Jul 31 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Fred | last post by:
I am trying to come up with a way to lookup values in Access as easily as I can in Excel. My application is looking up scores. An example lookup table below explains what I'm after: TABLE1...
3
by: Fred | last post by:
I have an application that involves calculating a score based on a number of defects. Simplified example of the scoring: No_Defects Score 1-3 A 4-15 ...
2
by: Rebecca | last post by:
could someone tell me the correct syntax for using vlookup in visual basic
0
NeoPa
by: NeoPa | last post by:
VlookUp or Vertical LookUp is a function that enables Excel to ‘Find’ related items from within a range stored elsewhere. Elsewhere can mean another excel workbook on another PC, but can also mean a...
5
by: catlover30 | last post by:
HI, I need help with excel VLOOKUP! I am at a new job and really trying to solve this without asking anyone at work, since they seem th expect me to know this. What I am trying to acheive is the...
0
by: mikelever | last post by:
Hi, i have the following sendmail macro. However I need the "To" section to be the result of a lookup in a worksheet. The specific function that i need it to be is: =VLOOKUP(A837,'Tenacity...
1
by: scubasteve | last post by:
Looking up values from an Access table is simple. Simulating the 'Range Lookup' functionality from Excel's VLookup formula is a bit trickier. For those that aren't familiar with this, it allows...
9
by: Sinner | last post by:
Hi, I have a field name 'USER' in tableMAIN. How do I replace the user names with corresponding user names. I can do that in xl using vlookup but now I'm trying to find a way to do that in...
11
by: memiles | last post by:
Table 1 Part number, Data, Data1, Data2..... (Part Numer in this table is duplicated multiple times) Table 2 Part Number, Data 3...... (Part Number in this table is not duplicated) I would...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.