|
A.D. -
Could you help me better
understand your function?
Function Fn_RecNum(ByVal
TableName As String,
_
ByVal FieldName As String, _ ByVal FieldValue As Variant, _ ByVal PkName As String, _ ByVal PkValue As Variant) As Long I am guessing that I
should be getting the values from the table associated with the sub
report. However, my sub report is based on a multi-table query, so I am
not sure what TableName, FieldName, and PkName to use. What I have been
trying so far, returns 0 for RecNum and 0 for Batch.
My record source for the Sub
Report:
SELECT DISTINCTROW
[Recipe Ingredients].*, Nz([Quantity]+" ")+[Ingredients.Ingredient] & nz(",
"+[comments]) AS MyIngredients FROM Ingredients INNER JOIN [Recipe Ingredients]
ON Ingredients.IngredientID = [Recipe Ingredients].IngredientID;
IngredientID
is the PK for the Table Ingredients.
RecipeIngredientID is the PK for the Table Recipe
Ingredients
Thank
you.
Dawn
Crosier From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of A.D.Tejpal Sent: Wednesday, January 18, 2006 11:16 PM To: [email protected] Subject: Re: [AccessDevelopers] Multi Column Report Dawn,
You don't have to worry about total number of
records in the subreport. Batch size (its value is 52 in the sample)
merely indicates the max number of records that can be safely
accommodated on a page. You can experiment by entering
different values in the text box on start-up form and choose the one
that gives best results.
If the total number of records happens to
exceed batch size, the contents of intended subreport
are automatically sub-divided into convenient packets and get printed
as a series of subreports in continuation in such a manner that max number of
records in any of such subreports remains within the specified batch size. All
this is meant to ensure that the height of subreport control does not spill over
to next page (this is important in the context of balancing of columns in Down
& then Across layout).
If the number of records in main
subreport is well within what can be accommodated on a page without
any spill-over to next page (as already specified by batch size), the
subreport gets printed straightaway without any subdivision (as it is
not needed). Batch size does not play any role in such a situation.
Best wishes,
A.D.Tejpal
Please zip all files prior to uploading to Files section.
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- RE: [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- RE: [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- RE: [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- RE: [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- RE: [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
- RE: [AccessDevelopers] Multi Column Report Crosier, Dawn
- Re: [AccessDevelopers] Multi Column Report A.D.Tejpal
