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  

Header problem



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2004, 10:59 AM
ANSWER
external usenet poster
 
Posts: n/a
Default Header problem

Hi,

I have report. In header of this report I want to input data from table.
Because data in report header has to be changed occasionally and he can
change data in that table although he use mde database.

I try this:

Use DLookup() in the ControlSource of a text box on your report, e.g.:
=DLookup("NameOfYourFieldHere", "NameOfYourTableHere")


but error has occur:

The expression you entered contains invalid syntax.

You omitted an operand or operator, you entered an invalid character or
comma,
or you entered text without surrounding in quotation marks.

What I have do wrong?

Thanks



  #2  
Old May 20th, 2004, 12:32 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Header problem

Replace
NameOfYourFieldHere
with the name of the field you wish to look up.

Replace
NameofYourTableHere
with the name of the table that contains this field.

Include the quote marks.

For more help with DLookup() see:
http://allenbrowne.com/casu-07.html

If it still does not work, check your references:
http://allenbrowne.com/ser-38.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"ANSWER" wrote in message
...

I have report. In header of this report I want to input data from table.
Because data in report header has to be changed occasionally and he can
change data in that table although he use mde database.

I try this:

Use DLookup() in the ControlSource of a text box on your report, e.g.:
=DLookup("NameOfYourFieldHere", "NameOfYourTableHere")


but error has occur:

The expression you entered contains invalid syntax.

You omitted an operand or operator, you entered an invalid character or
comma,
or you entered text without surrounding in quotation marks.

What I have do wrong?



 




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


All times are GMT +1. The time now is 03:01 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.