Help!

Error message for DLookUp

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Reports RSS
Next:  Import texte file  
Author Message
dcrqueens
External


Since: Oct 30, 2009
Posts: 2



PostPosted: Fri Oct 30, 2009 5:40 am    Post subject: Error message for DLookUp
Archived from groups: microsoft>public>access>reports (more info?)

Hello All,

I have a query with the following fields:
Member Number
Member Name
State
Review Date

I have 2 tables:
Committee Report and
Delivery Tracking.

I have joined the 2 tables in the query by the unique member number. The
issue I am having is that I am trying to create a report based on the query
but cannot seem to get it to work. What I would like is for once the member
number is selected in the Delivery tracking database the Member
Name,State,and Review Date to be pulled from the Committee Report table. I
have tired using the following information by entering it into the criteria
section of the query but I get the following error message:

DLookUp("[Member #]", "[Committee Report]", "[Member Name] = " & [Member
Name])


The specified field [Member Name] could refer to more than one table listed
in the From clause of your SQL statement. Below is the

Yes, I do have a field called Member Name, State and Review Date in the
Delivery tracking Field because I thought it was needed in order for the
query to deliver the information back in the query. Can someone please advise
where I have gone wrong?

Thank you in advance.
Back to top
John Spencer
External


Since: Jul 15, 2009
Posts: 47



PostPosted: Fri Oct 30, 2009 5:16 pm    Post subject: Re: Error message for DLookUp [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

TRY

DLookUp("[Member #]", "[Committee Report]", "[Member Name] = """ &
[TableName].[Member Name] & """")


John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

dcrqueens wrote:
> Hello All,
>
> I have a query with the following fields:
> Member Number
> Member Name
> State
> Review Date
>
> I have 2 tables:
> Committee Report and
> Delivery Tracking.
>
> I have joined the 2 tables in the query by the unique member number. The
> issue I am having is that I am trying to create a report based on the query
> but cannot seem to get it to work. What I would like is for once the member
> number is selected in the Delivery tracking database the Member
> Name,State,and Review Date to be pulled from the Committee Report table. I
> have tired using the following information by entering it into the criteria
> section of the query but I get the following error message:
>
> DLookUp("[Member #]", "[Committee Report]", "[Member Name] = " & [Member
> Name])
>
>
> The specified field [Member Name] could refer to more than one table listed
> in the From clause of your SQL statement. Below is the
>
> Yes, I do have a field called Member Name, State and Review Date in the
> Delivery tracking Field because I thought it was needed in order for the
> query to deliver the information back in the query. Can someone please advise
> where I have gone wrong?
>
> Thank you in advance.
Back to top
dcrqueens
External


Since: Oct 30, 2009
Posts: 2



PostPosted: Sun Nov 01, 2009 9:37 am    Post subject: Re: Error message for DLookUp [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

John I got it to work. I went back to the table that the report will be based
off, and added the fields needed from the Committee report. It is now
automatically pulling the information. Thank you very much for your help.

"John Spencer" wrote:

> TRY
>
> DLookUp("[Member #]", "[Committee Report]", "[Member Name] = """ &
> [TableName].[Member Name] & """")
>
>
> John Spencer
> Access MVP 2002-2005, 2007-2009
> The Hilltop Institute
> University of Maryland Baltimore County
>
> dcrqueens wrote:
> > Hello All,
> >
> > I have a query with the following fields:
> > Member Number
> > Member Name
> > State
> > Review Date
> >
> > I have 2 tables:
> > Committee Report and
> > Delivery Tracking.
> >
> > I have joined the 2 tables in the query by the unique member number. The
> > issue I am having is that I am trying to create a report based on the query
> > but cannot seem to get it to work. What I would like is for once the member
> > number is selected in the Delivery tracking database the Member
> > Name,State,and Review Date to be pulled from the Committee Report table. I
> > have tired using the following information by entering it into the criteria
> > section of the query but I get the following error message:
> >
> > DLookUp("[Member #]", "[Committee Report]", "[Member Name] = " & [Member
> > Name])
> >
> >
> > The specified field [Member Name] could refer to more than one table listed
> > in the From clause of your SQL statement. Below is the
> >
> > Yes, I do have a field called Member Name, State and Review Date in the
> > Delivery tracking Field because I thought it was needed in order for the
> > query to deliver the information back in the query. Can someone please advise
> > where I have gone wrong?
> >
> > Thank you in advance.
> .
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Reports All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum