PC Review


Reply
Thread Tools Rate Thread

dlookup or iff?

 
 
=?Utf-8?B?cGdhcmNpYQ==?=
Guest
Posts: n/a
 
      2nd Apr 2007
I can't seem to get the following to work. I'm trying to lookup the
information in a table and compare it to a query and return the vale in a
filed in the tabel. If this was excel I just to a vlookup and I'm done, but
there is no vlookup in access, HELP.

iff( [CVR 8TH RUN]![Expr10] = [All Stations]![STN CD] , [All
Stations]![Profit Center] ,"n/a")

or

dlookup( [All Stations]![STN CD] ,Profit Center", [CVR 8TH RUN]![Expr10] )
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      3rd Apr 2007
I'm not exactly clear where you are trying to do this...

Are you trying to get a value looked up to show up in a table? If so, stop!

Tables (in Access) are great places to store data, but don't work well to
display it.

Forms in Access work great to display data, and give you a way (via
listboxes and comboboxes) to look up values from another table.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"pgarcia" <(E-Mail Removed)> wrote in message
news:57658C75-BE68-4FC2-94A2-(E-Mail Removed)...
>I can't seem to get the following to work. I'm trying to lookup the
> information in a table and compare it to a query and return the vale in a
> filed in the tabel. If this was excel I just to a vlookup and I'm done,
> but
> there is no vlookup in access, HELP.
>
> iff( [CVR 8TH RUN]![Expr10] = [All Stations]![STN CD] , [All
> Stations]![Profit Center] ,"n/a")
>
> or
>
> dlookup( [All Stations]![STN CD] ,Profit Center", [CVR 8TH RUN]![Expr10] )



 
Reply With Quote
Reply

« Login | ADO vs. DAO »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dlookup using a date defiined by another dlookup =?Utf-8?B?QmVubnlESGlsbA==?= Microsoft Access VBA Modules 1 8th Aug 2007 01:56 AM
Help with DLookup lucky33 Microsoft Access Form Coding 3 16th Jul 2007 01:10 AM
Re: Dlookup function - copying the dlookup info into a field.... Douglas J. Steele Microsoft Access Forms 0 6th Dec 2006 02:05 PM
Using DLookUp =?Utf-8?B?QXJhY2E=?= Microsoft Access Queries 5 10th Jan 2005 08:01 PM
Dlookup problems (was my Dlookup hell) Kavvy Microsoft Access Form Coding 3 18th Nov 2003 12:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:42 PM.