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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |