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  

Can't generate separate report for individual requisitions



 
 
Thread Tools Display Modes
  #1  
Old June 27th, 2006, 07:39 PM posted to microsoft.public.access.reports
lisedum
external usenet poster
 
Posts: 24
Default Can't generate separate report for individual requisitions

I have a requisition form that needs to generate it's own individual report.
I have tried everything and can't figure out why the report shows all
requisitions entered instead of a single report for each requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.
  #2  
Old June 27th, 2006, 07:47 PM posted to microsoft.public.access.reports
SusanV
external usenet poster
 
Posts: 399
Default Can't generate separate report for individual requisitions

The recordsource and any filtering and/or where clauses would be helpful -
as it stands we have no way of knowing what the actual data being pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows all
requisitions entered instead of a single report for each requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.



  #3  
Old June 28th, 2006, 05:25 AM posted to microsoft.public.access.reports
JimBadHair
external usenet poster
 
Posts: 7
Default Can't generate separate report for individual requisitions

Can we assume you have a similiar statement such as this in the OnClick event
of the print command button?

stDocName = "Your Report Name"
DoCmd.OpenReport stDocName, acPreview, , "[RequisitionID] =
Forms![RequisitionForm]![RequisitionID]"

I use this and another version of this to filter all of my reports to match
the current record of the form from which I am printing.



"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be helpful -
as it stands we have no way of knowing what the actual data being pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows all
requisitions entered instead of a single report for each requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.




  #4  
Old June 28th, 2006, 08:26 PM posted to microsoft.public.access.reports
lisedum
external usenet poster
 
Posts: 24
Default Can't generate separate report for individual requisitions

The record source is from a table of the same name, the subform is an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be helpful -
as it stands we have no way of knowing what the actual data being pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows all
requisitions entered instead of a single report for each requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.




  #5  
Old June 28th, 2006, 09:54 PM posted to microsoft.public.access.reports
scruffy
external usenet poster
 
Posts: 21
Default Can't generate separate report for individual requisitions

Since each requisition has it's own number try putting a text box in a group
header section and used the record number as the source. Set the properties
to break after section which will put each record on a separate page. If your
subreport is in the details section it should carry with the requisition
number for each page.

HTH
scruffy

"lisedum" wrote:

The record source is from a table of the same name, the subform is an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be helpful -
as it stands we have no way of knowing what the actual data being pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows all
requisitions entered instead of a single report for each requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.




  #6  
Old June 30th, 2006, 04:13 PM posted to microsoft.public.access.reports
lisedum
external usenet poster
 
Posts: 24
Default Can't generate separate report for individual requisitions

Thank you,

That was not exactly it, but from your answer I was able to figure out what
was wrong.

Now I have another printing problem.

When I click on the print requisition button from the form, it prompts for
the requisition number with a dialog box: "Enter Parameter Value" and I
don't know why. I have a filter to print the requisition as follows:

SELECT Requisition.*
FROM Requisition
WHERE
(((Requisition.MaterialRequisitionNumber)=[Forms]![Requisition]![MaterialRequisitionNumber]));

And in the event procedure I have the following:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter"

I don't want it to prompt for the number, just to print the current
requisition on the form and I can't figure out why it is not doing this.

Thank you.



"scruffy" wrote:

Since each requisition has it's own number try putting a text box in a group
header section and used the record number as the source. Set the properties
to break after section which will put each record on a separate page. If your
subreport is in the details section it should carry with the requisition
number for each page.

HTH
scruffy

"lisedum" wrote:

The record source is from a table of the same name, the subform is an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be helpful -
as it stands we have no way of knowing what the actual data being pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows all
requisitions entered instead of a single report for each requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.



  #7  
Old June 30th, 2006, 10:07 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 2,251
Default Can't generate separate report for individual requisitions

I haven't ever used the query argument of DoCmd.OpenReport and haven't seen
others recommend it. The method I use is like:

Dim strWhere as String
strWhere = "MaterialRequisitionNumber = " & Me.MaterialRequisitionNumber
strDocName = "Requisition"
'Print Requisition Report using the where clause
DoCmd.OpenReport strDocName, acViewNormal, ,strWhere

--
Duane Hookom
MS Access MVP


"lisedum" wrote in message
...
Thank you,

That was not exactly it, but from your answer I was able to figure out
what
was wrong.

Now I have another printing problem.

When I click on the print requisition button from the form, it prompts for
the requisition number with a dialog box: "Enter Parameter Value" and I
don't know why. I have a filter to print the requisition as follows:

SELECT Requisition.*
FROM Requisition
WHERE
(((Requisition.MaterialRequisitionNumber)=[Forms]![Requisition]![MaterialRequisitionNumber]));

And in the event procedure I have the following:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter"

I don't want it to prompt for the number, just to print the current
requisition on the form and I can't figure out why it is not doing this.

Thank you.



"scruffy" wrote:

Since each requisition has it's own number try putting a text box in a
group
header section and used the record number as the source. Set the
properties
to break after section which will put each record on a separate page. If
your
subreport is in the details section it should carry with the requisition
number for each page.

HTH
scruffy

"lisedum" wrote:

The record source is from a table of the same name, the subform is an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter
Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be
helpful -
as it stands we have no way of knowing what the actual data being
pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows
all
requisitions entered instead of a single report for each
requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the
requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.





  #8  
Old July 4th, 2006, 03:38 PM posted to microsoft.public.access.reports
lisedum
external usenet poster
 
Posts: 24
Default Can't generate separate report for individual requisitions

I tried it and it still prompts me to enter the requisition number. Even if
I enter the requisition number, it will still print all requisitions.

I have no idea why it won't print the current one only.

Thank you.

"Duane Hookom" wrote:

I haven't ever used the query argument of DoCmd.OpenReport and haven't seen
others recommend it. The method I use is like:

Dim strWhere as String
strWhere = "MaterialRequisitionNumber = " & Me.MaterialRequisitionNumber
strDocName = "Requisition"
'Print Requisition Report using the where clause
DoCmd.OpenReport strDocName, acViewNormal, ,strWhere

--
Duane Hookom
MS Access MVP


"lisedum" wrote in message
...
Thank you,

That was not exactly it, but from your answer I was able to figure out
what
was wrong.

Now I have another printing problem.

When I click on the print requisition button from the form, it prompts for
the requisition number with a dialog box: "Enter Parameter Value" and I
don't know why. I have a filter to print the requisition as follows:

SELECT Requisition.*
FROM Requisition
WHERE
(((Requisition.MaterialRequisitionNumber)=[Forms]![Requisition]![MaterialRequisitionNumber]));

And in the event procedure I have the following:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter"

I don't want it to prompt for the number, just to print the current
requisition on the form and I can't figure out why it is not doing this.

Thank you.



"scruffy" wrote:

Since each requisition has it's own number try putting a text box in a
group
header section and used the record number as the source. Set the
properties
to break after section which will put each record on a separate page. If
your
subreport is in the details section it should carry with the requisition
number for each page.

HTH
scruffy

"lisedum" wrote:

The record source is from a table of the same name, the subform is an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter
Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be
helpful -
as it stands we have no way of knowing what the actual data being
pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own individual
report.
I have tried everything and can't figure out why the report shows
all
requisitions entered instead of a single report for each
requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the
requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.






  #9  
Old July 4th, 2006, 04:34 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 2,251
Default Can't generate separate report for individual requisitions

Confirm that you have a numeric field in your report's record named
"MaterialRequisitionNumber" and a control on your form named
"MatericalRequistionNumber".

--
Duane Hookom
MS Access MVP

"lisedum" wrote in message
...
I tried it and it still prompts me to enter the requisition number. Even
if
I enter the requisition number, it will still print all requisitions.

I have no idea why it won't print the current one only.

Thank you.

"Duane Hookom" wrote:

I haven't ever used the query argument of DoCmd.OpenReport and haven't
seen
others recommend it. The method I use is like:

Dim strWhere as String
strWhere = "MaterialRequisitionNumber = " & Me.MaterialRequisitionNumber
strDocName = "Requisition"
'Print Requisition Report using the where clause
DoCmd.OpenReport strDocName, acViewNormal, ,strWhere

--
Duane Hookom
MS Access MVP


"lisedum" wrote in message
...
Thank you,

That was not exactly it, but from your answer I was able to figure out
what
was wrong.

Now I have another printing problem.

When I click on the print requisition button from the form, it prompts
for
the requisition number with a dialog box: "Enter Parameter Value" and
I
don't know why. I have a filter to print the requisition as follows:

SELECT Requisition.*
FROM Requisition
WHERE
(((Requisition.MaterialRequisitionNumber)=[Forms]![Requisition]![MaterialRequisitionNumber]));

And in the event procedure I have the following:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter"

I don't want it to prompt for the number, just to print the current
requisition on the form and I can't figure out why it is not doing
this.

Thank you.



"scruffy" wrote:

Since each requisition has it's own number try putting a text box in a
group
header section and used the record number as the source. Set the
properties
to break after section which will put each record on a separate page.
If
your
subreport is in the details section it should carry with the
requisition
number for each page.

HTH
scruffy

"lisedum" wrote:

The record source is from a table of the same name, the subform is
an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter
Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be
helpful -
as it stands we have no way of knowing what the actual data being
pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own
individual
report.
I have tried everything and can't figure out why the report
shows
all
requisitions entered instead of a single report for each
requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the
requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.








  #10  
Old July 4th, 2006, 09:55 PM posted to microsoft.public.access.reports
lisedum
external usenet poster
 
Posts: 24
Default Can't generate separate report for individual requisitions

Yes, I double checked and I do.



"Duane Hookom" wrote:

Confirm that you have a numeric field in your report's record named
"MaterialRequisitionNumber" and a control on your form named
"MatericalRequistionNumber".

--
Duane Hookom
MS Access MVP

"lisedum" wrote in message
...
I tried it and it still prompts me to enter the requisition number. Even
if
I enter the requisition number, it will still print all requisitions.

I have no idea why it won't print the current one only.

Thank you.

"Duane Hookom" wrote:

I haven't ever used the query argument of DoCmd.OpenReport and haven't
seen
others recommend it. The method I use is like:

Dim strWhere as String
strWhere = "MaterialRequisitionNumber = " & Me.MaterialRequisitionNumber
strDocName = "Requisition"
'Print Requisition Report using the where clause
DoCmd.OpenReport strDocName, acViewNormal, ,strWhere

--
Duane Hookom
MS Access MVP


"lisedum" wrote in message
...
Thank you,

That was not exactly it, but from your answer I was able to figure out
what
was wrong.

Now I have another printing problem.

When I click on the print requisition button from the form, it prompts
for
the requisition number with a dialog box: "Enter Parameter Value" and
I
don't know why. I have a filter to print the requisition as follows:

SELECT Requisition.*
FROM Requisition
WHERE
(((Requisition.MaterialRequisitionNumber)=[Forms]![Requisition]![MaterialRequisitionNumber]));

And in the event procedure I have the following:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter"

I don't want it to prompt for the number, just to print the current
requisition on the form and I can't figure out why it is not doing
this.

Thank you.



"scruffy" wrote:

Since each requisition has it's own number try putting a text box in a
group
header section and used the record number as the source. Set the
properties
to break after section which will put each record on a separate page.
If
your
subreport is in the details section it should carry with the
requisition
number for each page.

HTH
scruffy

"lisedum" wrote:

The record source is from a table of the same name, the subform is
an
auto-lookup from a query.

I am using a filter as follows:

Dim strDocName As String

strDocName = "Requisition"
'Print Requisition Report using Requisition Filter Query
DoCmd.OpenReport strDocName, acViewNormal, "Requisition Filter
Query"

Where clause for the filter is as follows:

WHERE
((([Requisition].[MaterialRequisitionNumber])=[Forms]![Requisition]![MaterialRequisitionNumber]));

Hope this helps - I still can't figure out what is wrong.

Thank you.




"SusanV" wrote:

The recordsource and any filtering and/or where clauses would be
helpful -
as it stands we have no way of knowing what the actual data being
pulled
might be...
--
hth,
SusanV


"lisedum" wrote in message
...
I have a requisition form that needs to generate it's own
individual
report.
I have tried everything and can't figure out why the report
shows
all
requisitions entered instead of a single report for each
requisition. All
requisitions print continuously on one single report.

The requisition has an auto number with a subform for the
requisition
details that has an auto-lookup based on a query.

I hope someone has the answer!

Thank you.









 




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
Page footer with Report footer Steve Setting Up & Running Reports 0 March 3rd, 2006 05:02 AM
Reporting subreport total on main report BobV Setting Up & Running Reports 22 November 1st, 2005 03:19 AM
Report footer is printing on a separate page Dana W. Ciardi General Discussion 0 September 12th, 2005 04:48 PM
Multi-column report with text from separate fields flowing down each column Rabi Tripathi Setting Up & Running Reports 3 September 30th, 2004 03:23 AM
Save Report With CreateReport Coding Issue Jeff Conrad Setting Up & Running Reports 8 July 12th, 2004 08:39 AM


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