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  

#Name? prints on a report when date shows up on preview



 
 
Thread Tools Display Modes
  #1  
Old September 11th, 2007, 08:36 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default #Name? prints on a report when date shows up on preview

Access 2003 SP 2
Windows XP SP 2

I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?

In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.

Any assistance is greatly appreciated.

Thanks,
Eric

  #2  
Old September 11th, 2007, 10:39 PM posted to microsoft.public.access.reports
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default #Name? prints on a report when date shows up on preview

Try changing the WHERE clause's criterion to this (use ! instead of .):

Between [Forms]![frmFuelmanByForeman]![txtStartDate] And
[Forms]![frmFuelmanByForeman]![txtEndDate]

--

Ken Snell
MS ACCESS MVP



wrote in message
oups.com...
Access 2003 SP 2
Windows XP SP 2

I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?

In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.

Any assistance is greatly appreciated.

Thanks,
Eric



  #3  
Old September 11th, 2007, 10:41 PM posted to microsoft.public.access.reports
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default #Name? prints on a report when date shows up on preview

Also, make the same change (replace . with !) in the textboxes'
ControlSource expressions.

--

Ken Snell
MS ACCESS MVP


"Ken Snell (MVP)" wrote in message
...
Try changing the WHERE clause's criterion to this (use ! instead of .):

Between [Forms]![frmFuelmanByForeman]![txtStartDate] And
[Forms]![frmFuelmanByForeman]![txtEndDate]

--

Ken Snell
MS ACCESS MVP



wrote in message
oups.com...
Access 2003 SP 2
Windows XP SP 2

I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?

In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.

Any assistance is greatly appreciated.

Thanks,
Eric





  #4  
Old September 11th, 2007, 11:36 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default #Name? prints on a report when date shows up on preview

Ok I did that, still not working. I did notice that I don't have a
WHERE clause in my query. It is a HAVING statement.

SELECT domEmployee.FirstName & " " & [LastName] AS CardholderName,
Sum(tblFuelman.AMOUNT) AS SumOfAMOUNT, domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
FROM domMCCDesc INNER JOIN (domEmployee INNER JOIN tblFuelman ON
domEmployee.EmployeeID=tblFuelman.CARDHOLDER) ON
domMCCDesc.ID=tblFuelman.MCC_DESC
GROUP BY domEmployee.FirstName & " " & [LastName], domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
HAVING (((tblFuelman.TRANSDATE) Between Forms!frmFuelmanByForeman!
txtStartDate And Forms!frmFuelmanByForeman!txtEndDate) And
((domEmployee.FirstName & " " & [LastName]) Not Like "keri*"));


Anything else I can try?




On Sep 11, 2:41 pm, "Ken Snell \(MVP\)"
wrote:
Also, make the same change (replace . with !) in the textboxes'
ControlSource expressions.

--

Ken Snell
MS ACCESS MVP

"Ken Snell (MVP)" wrote in .. .

Try changing the WHERE clause's criterion to this (use ! instead of .):


Between [Forms]![frmFuelmanByForeman]![txtStartDate] And
[Forms]![frmFuelmanByForeman]![txtEndDate]


--


Ken Snell
MS ACCESS MVP


wrote in message
roups.com...
Access 2003 SP 2
Windows XP SP 2


I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?


In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.


Any assistance is greatly appreciated.


Thanks,
Eric



  #5  
Old September 12th, 2007, 12:50 AM posted to microsoft.public.access.reports
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default #Name? prints on a report when date shows up on preview

What I do for reports in these circumstances is to add calculated fields to
the query for the parameter values, and bind textboxes on the report to
those calculated fields so that the values are more easily displayed on the
report -- too many problems, I've found, with having a report read from a
form that may not be open any mo

SELECT domEmployee.FirstName & " " & [LastName] AS CardholderName,
Sum(tblFuelman.AMOUNT) AS SumOfAMOUNT, domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE, Forms!frmFuelmanByForeman!txtStartDate
AS TheStartDate, Forms!frmFuelmanByForeman!txtEndDate
AS TheEndDate
FROM domMCCDesc INNER JOIN (domEmployee INNER JOIN tblFuelman ON
domEmployee.EmployeeID=tblFuelman.CARDHOLDER) ON
domMCCDesc.ID=tblFuelman.MCC_DESC
GROUP BY domEmployee.FirstName & " " & [LastName], domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
HAVING (((tblFuelman.TRANSDATE) Between Forms!frmFuelmanByForeman!
txtStartDate And Forms!frmFuelmanByForeman!txtEndDate) And
((domEmployee.FirstName & " " & [LastName]) Not Like "keri*"));


--

Ken Snell
MS ACCESS MVP



wrote in message
ups.com...
Ok I did that, still not working. I did notice that I don't have a
WHERE clause in my query. It is a HAVING statement.

SELECT domEmployee.FirstName & " " & [LastName] AS CardholderName,
Sum(tblFuelman.AMOUNT) AS SumOfAMOUNT, domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
FROM domMCCDesc INNER JOIN (domEmployee INNER JOIN tblFuelman ON
domEmployee.EmployeeID=tblFuelman.CARDHOLDER) ON
domMCCDesc.ID=tblFuelman.MCC_DESC
GROUP BY domEmployee.FirstName & " " & [LastName], domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
HAVING (((tblFuelman.TRANSDATE) Between Forms!frmFuelmanByForeman!
txtStartDate And Forms!frmFuelmanByForeman!txtEndDate) And
((domEmployee.FirstName & " " & [LastName]) Not Like "keri*"));


Anything else I can try?




On Sep 11, 2:41 pm, "Ken Snell \(MVP\)"
wrote:
Also, make the same change (replace . with !) in the textboxes'
ControlSource expressions.

--

Ken Snell
MS ACCESS MVP

"Ken Snell (MVP)" wrote in
.. .

Try changing the WHERE clause's criterion to this (use ! instead of .):


Between [Forms]![frmFuelmanByForeman]![txtStartDate] And
[Forms]![frmFuelmanByForeman]![txtEndDate]


--


Ken Snell
MS ACCESS MVP


wrote in message
roups.com...
Access 2003 SP 2
Windows XP SP 2


I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?


In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.


Any assistance is greatly appreciated.


Thanks,
Eric





  #6  
Old September 12th, 2007, 12:54 AM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default #Name? prints on a report when date shows up on preview

Try this and in the report textbox use =[txtEndDate] & "..." &
[txtStartDate].
SELECT domEmployee.FirstName & " " & [LastName] AS CardholderName,
Sum(tblFuelman.AMOUNT) AS SumOfAMOUNT, domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE, Forms!frmFuelmanByForeman!txtStartDate AS
txtStartDate, Forms!frmFuelmanByForeman!txtEndDate AS txtEndDate
FROM domMCCDesc INNER JOIN (domEmployee INNER JOIN tblFuelman ON
domEmployee.EmployeeID=tblFuelman.CARDHOLDER) ON
domMCCDesc.ID=tblFuelman.MCC_DESC
GROUP BY domEmployee.FirstName & " " & [LastName], domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
HAVING (((tblFuelman.TRANSDATE) Between Forms!frmFuelmanByForeman!
txtStartDate And Forms!frmFuelmanByForeman!txtEndDate) And
((domEmployee.FirstName & " " & [LastName]) Not Like "keri*"));



--
KARL DEWEY
Build a little - Test a little


" wrote:

Ok I did that, still not working. I did notice that I don't have a
WHERE clause in my query. It is a HAVING statement.

SELECT domEmployee.FirstName & " " & [LastName] AS CardholderName,
Sum(tblFuelman.AMOUNT) AS SumOfAMOUNT, domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
FROM domMCCDesc INNER JOIN (domEmployee INNER JOIN tblFuelman ON
domEmployee.EmployeeID=tblFuelman.CARDHOLDER) ON
domMCCDesc.ID=tblFuelman.MCC_DESC
GROUP BY domEmployee.FirstName & " " & [LastName], domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
HAVING (((tblFuelman.TRANSDATE) Between Forms!frmFuelmanByForeman!
txtStartDate And Forms!frmFuelmanByForeman!txtEndDate) And
((domEmployee.FirstName & " " & [LastName]) Not Like "keri*"));


Anything else I can try?




On Sep 11, 2:41 pm, "Ken Snell \(MVP\)"
wrote:
Also, make the same change (replace . with !) in the textboxes'
ControlSource expressions.

--

Ken Snell
MS ACCESS MVP

"Ken Snell (MVP)" wrote in .. .

Try changing the WHERE clause's criterion to this (use ! instead of .):


Between [Forms]![frmFuelmanByForeman]![txtStartDate] And
[Forms]![frmFuelmanByForeman]![txtEndDate]


--


Ken Snell
MS ACCESS MVP


wrote in message
roups.com...
Access 2003 SP 2
Windows XP SP 2


I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?


In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.


Any assistance is greatly appreciated.


Thanks,
Eric




  #7  
Old September 12th, 2007, 01:58 AM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default #Name? prints on a report when date shows up on preview

Nevermind about this last message. I figured it out.


On Sep 11, 3:36 pm, "
wrote:
Ok I did that, still not working. I did notice that I don't have a
WHERE clause in my query. It is a HAVING statement.

SELECT domEmployee.FirstName & " " & [LastName] AS CardholderName,
Sum(tblFuelman.AMOUNT) AS SumOfAMOUNT, domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
FROM domMCCDesc INNER JOIN (domEmployee INNER JOIN tblFuelman ON
domEmployee.EmployeeID=tblFuelman.CARDHOLDER) ON
domMCCDesc.ID=tblFuelman.MCC_DESC
GROUP BY domEmployee.FirstName & " " & [LastName], domMCCDesc.MCCDESC,
tblFuelman.TRANSDATE
HAVING (((tblFuelman.TRANSDATE) Between Forms!frmFuelmanByForeman!
txtStartDate And Forms!frmFuelmanByForeman!txtEndDate) And
((domEmployee.FirstName & " " & [LastName]) Not Like "keri*"));

Anything else I can try?

On Sep 11, 2:41 pm, "Ken Snell \(MVP\)"

wrote:
Also, make the same change (replace . with !) in the textboxes'
ControlSource expressions.


--


Ken Snell
MS ACCESS MVP


"Ken Snell (MVP)" wrote in .. .


Try changing the WHERE clause's criterion to this (use ! instead of .):


Between [Forms]![frmFuelmanByForeman]![txtStartDate] And
[Forms]![frmFuelmanByForeman]![txtEndDate]


--


Ken Snell
MS ACCESS MVP


wrote in message
roups.com...
Access 2003 SP 2
Windows XP SP 2


I have created a report (rptFuelmanByForeman) that is based on a Query
(qryFuelmanByForeman). I have created a form to select (or enter) a
date range that then filters the report based on that date range and
populates transactions between those dates. I have created two text
boxes on the report that display the start date (txtStartDT) and end
date (txtEndDT) entered in the date select form. The control source
on the date boxes on the report is
"=Forms.frmFuelmanByForeman.txtEndDate" & "...txtStartDate". In
Preview mode, the dates display fine; however, when I print the report
the date fields show #Name?


In the query I have the TRANSDATE set with a criteria of "Between
[Forms].[frmFuelmanByForeman].[txtStartDate] And [Forms].
[frmFuelmanByForeman].[txtEndDate]" and I have a non-visible text box
on the form for TRANSDATE, but I don't really believe either of these
have anything to do with the dates not showing up when the report is
printed.


Any assistance is greatly appreciated.


Thanks,
Eric





 




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 08:24 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.