PC Review


Reply
Thread Tools Rate Thread

Is DLOOKUP the best choice?

 
 
FSUrules2883@aol.com
Guest
Posts: n/a
 
      3rd Feb 2008
I am trying to use a DLOOKUP in a report To lookup a value in a
stored
query from information that is the report. I have a report that
gives
me a customers parent account name and I am trying to then use that
parent account name to look up a comment stored in another query.
This is how my formula looks

=DLookUp("TXTFIELD","Query","Query.ParentAccount"="ParentAccountFromReport"*)


Any sugesstions?
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      3rd Feb 2008
You'd likely be better off using a query that combines the two tables, and
use that table as as the RecordSource for your report.

As it stands, your syntax is incorrect: the equal sign needs to be in
quotes, and, unless ParentAccountFromReport is a constant text value, you
don't want quotes around it:

=DLookUp("TXTFIELD","Query","Query.ParentAccount=" &
ParentAccountFromReport)


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


<(E-Mail Removed)> wrote in message
news:5844b551-fa84-41d8-bd02-(E-Mail Removed)...
I am trying to use a DLOOKUP in a report To lookup a value in a
stored
query from information that is the report. I have a report that
gives
me a customers parent account name and I am trying to then use that
parent account name to look up a comment stored in another query.
This is how my formula looks

=DLookUp("TXTFIELD","Query","Query.ParentAccount"="ParentAccountFromReport"*)


Any sugesstions?


 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      3rd Feb 2008
You'd likely be better off using a query that combines the two tables, and
use that table as as the RecordSource for your report.

As it stands, your syntax is incorrect: the equal sign needs to be in
quotes, and, unless ParentAccountFromReport is a constant text value, you
don't want quotes around it:

=DLookUp("TXTFIELD","Query","Query.ParentAccount=" &
ParentAccountFromReport)


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


<(E-Mail Removed)> wrote in message
news:5844b551-fa84-41d8-bd02-(E-Mail Removed)...
I am trying to use a DLOOKUP in a report To lookup a value in a
stored
query from information that is the report. I have a report that
gives
me a customers parent account name and I am trying to then use that
parent account name to look up a comment stored in another query.
This is how my formula looks

=DLookUp("TXTFIELD","Query","Query.ParentAccount"="ParentAccountFromReport"*)


Any sugesstions?


 
Reply With Quote
 
Rick Brandt
Guest
Posts: n/a
 
      3rd Feb 2008
(E-Mail Removed) wrote:
> I am trying to use a DLOOKUP in a report To lookup a value in a
> stored
> query from information that is the report. I have a report that
> gives
> me a customers parent account name and I am trying to then use that
> parent account name to look up a comment stored in another query.
> This is how my formula looks
>
> =DLookUp("TXTFIELD","Query","Query.ParentAccount"="ParentAccountFromReport"*)
>
>
> Any sugesstions?


Add the query to the RecordSource of the report and the value will be available.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 
Reply With Quote
 
meu nome e lorena cristina da silva
Guest
Posts: n/a
 
      4th Feb 2008
>wy may name ys



"(E-Mail Removed)" escreveu:

> I am trying to use a DLOOKUP in a report To lookup a value in a
> stored
> query from information that is the report. I have a report that
> gives
> me a customers parent account name and I am trying to then use that
> parent account name to look up a comment stored in another query.
> This is how my formula looks
>
> =DLookUp("TXTFIELD","Query","Query.ParentAccount"="ParentAccountFromReport"Â*)
>
>
> Any sugesstions?
>

 
Reply With Quote
 
 
 
Reply

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
Re: Dlookup function - copying the dlookup info into a field.... Douglas J. Steele Microsoft Access Forms 0 6th Dec 2006 03:05 PM
dlookup or not dlookup... =?Utf-8?B?bHVsYQ==?= Microsoft Access 5 24th Nov 2005 08:24 AM
Dlookup within a Dlookup =?Utf-8?B?RGFuaWVs?= Microsoft Access VBA Modules 1 7th Jul 2004 02:57 PM
Dlookup problems (was my Dlookup hell) Kavvy Microsoft Access Form Coding 3 18th Nov 2003 01:16 PM
Dlookup or not dlookup Bruce Ritchie Microsoft Access 2 7th Nov 2003 01:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:13 AM.