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  

Dmax syntax



 
 
Thread Tools Display Modes
  #1  
Old October 6th, 2005, 03:59 PM
Gil Lopes via AccessMonster.com
external usenet poster
 
Posts: n/a
Default Dmax syntax

Hi fellas!
I have a report with no datasources (because of some subreports that are in
it).

I'm trying to insert a text box with the following statement:

=(dmax(field, query))

From what I know, it shoud work and return the max value from the query, but
it only returns "#Name?".

Any clues on this?
I' ve tryed to create another subreport with proper datasources and a "select
max" aproach, but the result was the same.

Any hints?

Many thanks,

Gil


--
Message posted via http://www.accessmonster.com
  #2  
Old October 6th, 2005, 04:08 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

A control source of
=(dmax(field, query))
won't work. You must use actual field and query/table names that enclosed in
quotes:
=DMax("[OrderDate]", "[Orders]")

--
Duane Hookom
MS Access MVP
--

"Gil Lopes via AccessMonster.com" u13164@uwe wrote in message
news:55700beec7eb8@uwe...
Hi fellas!
I have a report with no datasources (because of some subreports that are
in
it).

I'm trying to insert a text box with the following statement:

=(dmax(field, query))

From what I know, it shoud work and return the max value from the query,
but
it only returns "#Name?".

Any clues on this?
I' ve tryed to create another subreport with proper datasources and a
"select
max" aproach, but the result was the same.

Any hints?

Many thanks,

Gil


--
Message posted via http://www.accessmonster.com



  #3  
Old October 6th, 2005, 05:23 PM
Gil Lopes via AccessMonster.com
external usenet poster
 
Posts: n/a
Default

Many thanks Duane (once again).
That worked perfectly.

This is going well, finnaly.

Thanks,

Gil

Duane Hookom wrote:
A control source of
=(dmax(field, query))
won't work. You must use actual field and query/table names that enclosed in
quotes:
=DMax("[OrderDate]", "[Orders]")

Hi fellas!
I have a report with no datasources (because of some subreports that are

[quoted text clipped - 19 lines]

Gil



--
Message posted via http://www.accessmonster.com
 




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
DMax in grouping level in report Access 2000 helios Setting Up & Running Reports 3 September 29th, 2005 11:07 PM
Make the syntax in Access consistent aoeusnth General Discussion 1 April 7th, 2005 05:59 AM
CREATE PROC syntax in ADP aaron kempf General Discussion 2 December 5th, 2004 03:01 AM
syntax to run PL/SQL stored proc via ms access pass through query Edwinah63 General Discussion 2 June 23rd, 2004 03:47 AM
Syntax of excel Tapani Tuominen Worksheet Functions 2 March 30th, 2004 09:12 PM


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