[mso] Re: Vlookup in Access?

  • From: "April Pace" <4office@xxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Thu, 16 Jan 2003 16:27:24 -0500

Anthony...

Could you (would it be easier to) query for the info...

Teacher, Yr, Degree from one table and payrate from the other table??

Because, Well I am confused, if she has 50 teachers, Would she have to write
that formula 50 times and were, in a report???

Or would she write the formula you gave below as Dlookup("Payrate",
"tblSalary", "Years = [tblTeacher!years] AND Degree = [tblTeacher!degree]")


April
-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx]On
Behalf Of Colli, Anthony G
Sent: Thursday, January 16, 2003 3:23 PM
To: 'mso@xxxxxxxxxxxxx'
Subject: [mso] Re: Vlookup in Access?


Phil-

 To do what you require it would be best to modify the design of the salary
table. If the salary table was.

 SalaryID       ->PK
 Years  ->Integer
 Degree ->Text
 Payrate        ->Decimal

 From there if you have the teachers Years of service and degree in an other
table you can use Access Dlookup() function to return the payrate.

 Dlookup("Payrate", "tblSalary", "Years = 1 AND Degree = 'Masters'")

 would return the payrate for that row in the salary table.

-Anthony




-----Original Message-----
From: Sanders, Phil (Faculty - sanderspw)
[mailto:Phil.Sanders@xxxxxxxxxxxx]
Sent: Wednesday, January 15, 2003 11:29 AM
To: 'mso@xxxxxxxxxxxxx'
Subject: [mso] Vlookup in Access?



Hi folks,

I'm working on converting a spreadsheet into an Access database that will
help us determine raise amounts for faculty members. The teacher table
contains name info as well as years of experience and degree (Bachelor,
Master, Doctorate).  I've got a second table containing our current salary
scale similar to:

Years   Bachelor's      Master's        Doctorate
0       1000    2000    3000
1       1500    2500    3500
2       2000    3000    4000

If a teacher has one year of experience and a master's degree, I want Access
to tell me that their current salary is $2500. If they have two years and a
bachelor's I want it to give me $2000.

Can you all lead me in the right direction for that?

Many thanks!
Phil

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx?Subject=unsubscribe

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx?Subject=unsubscribe

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx?Subject=unsubscribe

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: