473,796 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perform Vlookup function in access

2 New Member
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 19988
damonreid
114 Recognized Expert New Member
Just make a query and link the respective fields.
Jul 23 '07 #2
Twanne
65 New Member
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
ritheshtitu1982
2 New Member
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 Recognized Expert New Member
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
21236
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 Measure (pct) Number score Letter grade Disposition 1% 40 A Pass 6% 36 B
3
2463
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 B 16-25 C over 25 X In Excel this is easy using a vlookup with its bin system
2
494
by: Rebecca | last post by:
could someone tell me the correct syntax for using vlookup in visual basic
0
4014
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 range in the current worksheet. In any Range reference in Excel, a ’$’ preceeding an element of the address, simply tells Excel not to be clever when copying or dragging the formula to other cells. Notice the formulas displayed in column B below:...
5
17641
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 same thing as a FULL OUTER JOIN if you are familiar with sql. I tried to do this is in access, but access does not support full joins. Anyhow: I have two email lists, one woth 2500 entries, one with 2600. They are located in same worksheet, one in...
0
1183
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 Jobs'!1:65536,5,FALSE) How can I incorporate this function so it will insert the result of the lookup into the "To" box ? __________________________________________________________________ Sub SendEmail()
1
6794
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 you to look up the next smallest value to what you provided, and return any corresponding field from the table. Very useful for looking up things like currency exchange rates, tax rates, etc., where there might not be an entry for every day/income...
9
3637
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 access. For a user mismatch, it should give NA Thx.
11
4456
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 like to create a new table
0
10455
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.