A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DLookup question



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2005, 04:24 PM
Ed
external usenet poster
 
Posts: n/a
Default DLookup question

For years using Access 97 a DLookup control source for a report has worked
perfectly.
However, in Access 2003/2000, it fails, returning a blank or #Error.
It is: =DLookUp("[Company Name]","[tblShippers]","[Shipper ID]=[Ship
Via]")

the [Ship Via] value in the table is present. When I originally began
investigating, Access had placed a "|" on each side of [Ship Via] (?). In
tblShippers each Company Name has a unique Shipper ID.

I have tried everything I know of.

Any suggestions appreciated.




  #2  
Old May 10th, 2005, 05:03 PM
GH
external usenet poster
 
Posts: n/a
Default

You might need something like this:
=DLookUp("[Company Name]","[tblShippers]","[Shipper ID]= " & [Ship Via])

Good Luck

"Ed" wrote in message
...
For years using Access 97 a DLookup control source for a report has worked
perfectly.
However, in Access 2003/2000, it fails, returning a blank or #Error.
It is: =DLookUp("[Company Name]","[tblShippers]","[Shipper ID]=[Ship
Via]")

the [Ship Via] value in the table is present. When I originally began
investigating, Access had placed a "|" on each side of [Ship Via] (?). In
tblShippers each Company Name has a unique Shipper ID.

I have tried everything I know of.

Any suggestions appreciated.






  #3  
Old May 10th, 2005, 05:12 PM
Ed
external usenet poster
 
Posts: n/a
Default

That solved it!!!!
Thanks GH, you all are the best!!

"GH" wrote in message
...
You might need something like this:
=DLookUp("[Company Name]","[tblShippers]","[Shipper ID]= " & [Ship Via])

Good Luck

"Ed" wrote in message
...
For years using Access 97 a DLookup control source for a report has

worked
perfectly.
However, in Access 2003/2000, it fails, returning a blank or #Error.
It is: =DLookUp("[Company Name]","[tblShippers]","[Shipper ID]=[Ship
Via]")

the [Ship Via] value in the table is present. When I originally began
investigating, Access had placed a "|" on each side of [Ship Via] (?).

In
tblShippers each Company Name has a unique Shipper ID.

I have tried everything I know of.

Any suggestions appreciated.








 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DLookup and Conversion in Report Tom Setting Up & Running Reports 1 April 2nd, 2005 05:21 AM
HELP! I'm really struggling to understand DLookup! Tony Williams General Discussion 0 February 17th, 2005 01:28 PM
DLookup Question Cherish Running & Setting Up Queries 1 August 23rd, 2004 08:45 PM
Word question regarding TOC (newbie question)... Herman Geerlings Formatting Long Documents 4 June 4th, 2004 03:12 PM
Designing a question paper Ken New Users 2 April 28th, 2004 10:13 PM


All times are GMT +1. The time now is 01:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.