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  

date error



 
 
Thread Tools Display Modes
  #1  
Old September 9th, 2006, 07:34 AM posted to microsoft.public.access.reports
Gerald
external usenet poster
 
Posts: 61
Default date error

I have a report which pulls info. onbasis of date range, using hasdata
property I am able to get a null value if there is not data processed within
the date range, however in the header it gives a me a text "error" for the
date range

need have the date range mentioned, at the moment under the control source I
use
="Dated from " & [Type beginning date] & " to " & [Type ending date]

any help will be appreciated

thanks
  #2  
Old September 9th, 2006, 01:23 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 2,251
Default date error

You can't get the entered dates from parameter prompts if there are no
records returned. Either use the HasData to remove the error or replace all
parameter prompts with references to controls on forms. This would work:

="Between " & [Forms]![frmRptCriteria]![txtStart] & " and " &
[Forms]![frmRptCriteria]![txtEnd]

--
Duane Hookom
MS Access MVP

"Gerald" wrote in message
...
I have a report which pulls info. onbasis of date range, using hasdata
property I am able to get a null value if there is not data processed
within
the date range, however in the header it gives a me a text "error" for the
date range

need have the date range mentioned, at the moment under the control source
I
use
="Dated from " & [Type beginning date] & " to " & [Type ending date]

any help will be appreciated

thanks



  #3  
Old September 9th, 2006, 01:40 PM posted to microsoft.public.access.reports
Gerald
external usenet poster
 
Posts: 61
Default date error

let me try the later, however tried HasData option did not work. In control
source entered =IIf([Report].HasData,Sum([Count]),0)"Dated from " & [Type
beginning date] & " to " & [Type ending date]

thanks
"Duane Hookom" wrote:

You can't get the entered dates from parameter prompts if there are no
records returned. Either use the HasData to remove the error or replace all
parameter prompts with references to controls on forms. This would work:

="Between " & [Forms]![frmRptCriteria]![txtStart] & " and " &
[Forms]![frmRptCriteria]![txtEnd]

--
Duane Hookom
MS Access MVP

"Gerald" wrote in message
...
I have a report which pulls info. onbasis of date range, using hasdata
property I am able to get a null value if there is not data processed
within
the date range, however in the header it gives a me a text "error" for the
date range

need have the date range mentioned, at the moment under the control source
I
use
="Dated from " & [Type beginning date] & " to " & [Type ending date]

any help will be appreciated

thanks




  #4  
Old September 9th, 2006, 01:46 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 2,251
Default date error

Your Sum() is correctly configured but you would have to use the same
IIf(HasData...) for your parameter prompts. Don't use parameter prompts.

--
Duane Hookom
MS Access MVP

"Gerald" wrote in message
...
let me try the later, however tried HasData option did not work. In
control
source entered =IIf([Report].HasData,Sum([Count]),0)"Dated from " & [Type
beginning date] & " to " & [Type ending date]

thanks
"Duane Hookom" wrote:

You can't get the entered dates from parameter prompts if there are no
records returned. Either use the HasData to remove the error or replace
all
parameter prompts with references to controls on forms. This would work:

="Between " & [Forms]![frmRptCriteria]![txtStart] & " and " &
[Forms]![frmRptCriteria]![txtEnd]

--
Duane Hookom
MS Access MVP

"Gerald" wrote in message
...
I have a report which pulls info. onbasis of date range, using hasdata
property I am able to get a null value if there is not data processed
within
the date range, however in the header it gives a me a text "error" for
the
date range

need have the date range mentioned, at the moment under the control
source
I
use
="Dated from " & [Type beginning date] & " to " & [Type ending date]

any help will be appreciated

thanks






 




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 11:40 PM.


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