473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

on current in report?

what would be an equivalent of OnCurrent event/Forms , in detail
section of the Report?
i have a subreport with just one (visible)field, bounded to a query.
subreport is in detail section of main report. i want to display all
the records in the query if the value of field X in main report is 1,
and just one record from the query ( with an invisible field in
sbReport set to 2), in any other case.
can i change recordsource for subReport for every record in Main
Report?
Nov 13 '05 #1
3 2312
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The equivalent to OnCurrent event is the section's Print and Format
events.

I don't believe you can change the Recordsource of a subreport while the
report is running. You can link the subreport to the main report by the
Link Child/Master Fields properties. Read the Access Help article
"About subreports" for more info. Help Contents hierarchy is (Acc
2002):

Reports and Report Snapshots
Advanced Reports
Subreports
About subreports

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQkHH2YechKqOuFEgEQLwygCgjYx5SQTvAojAwWMkl4mW8y 6dv8gAoNO5
t4aAof7T+Z+J1NaYCEDidzYG
=yAHW
-----END PGP SIGNATURE-----
bbdata wrote:
what would be an equivalent of OnCurrent event/Forms , in detail
section of the Report?
i have a subreport with just one (visible)field, bounded to a query.
subreport is in detail section of main report. i want to display all
the records in the query if the value of field X in main report is 1,
and just one record from the query ( with an invisible field in
sbReport set to 2), in any other case.
can i change recordsource for subReport for every record in Main
Report?

Nov 13 '05 #2
but you can have 2 subreports linked to your report and make one or the
other visible

Nov 13 '05 #3
le*********@natpro.com wrote in message news:<11**********************@l41g2000cwc.googleg roups.com>...
but you can have 2 subreports linked to your report and make one or the
other visible

ok im trying that right now and its not working well.
it is switching to not visible, but for ALL records.

is there any way you can manipulate ANY property of the control( field
)in detail section of the subreport, based on the value of any other
control in that same section in the subreport, or in the main report?

description: i have report which should list all active deals. one of
the fields is VendorName. deal can have multiple vendorNames, so i'm
usig subform to print all of them.
problem is, some of the deals have a Contract assigned to only ONE of
the vendors. in that case, i dont want to print all of the listed
vendors, just that one with the Contract assigned.

so theres another subreport, which pulls out just vendors with
contracts.

what was i doing, i was checking the value of contract flag in
subreport for
vendors with contracts, and if its flagged, i set the other subreport
-all vendors- , to not visible. checking in detail_format event of
subform.

that sets subreport to not visible in ALL of the records, regardless
of contract flag, if any of the deals has a vendor with a contract.

same thing if i set just one field on subreport to not visible.

any workaround?
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tony | last post by:
I have a form in access that has 5 fields for a certain record: 1)Date mailed, 2)Date received, 3)Date completed 4)Foreign Content amount and 5)record number. If the foreign content (FC)is >15% of...
1
by: Michael Israel | last post by:
I am new to Access. I have a form with a single record. The keyed field is PropID (number). I want to run a query from the form that will have the current value of PropID be the variable in the...
2
by: Rosy | last post by:
I am attempting to use the following code to print a report based on the current record in the form. Users bring up the record with a parameter box and then can make changes to the sub-form on the...
16
by: Brian Tkatch | last post by:
I have a PROCEDURE that test other PROCEDUREs. Timings_Call ------------------ Id Group Name Text Timings_Log
1
by: ZinksInk | last post by:
How do I make a report display the current record open in a form? This seems like it should be a simple issue however I am strugling to figure out what code SQL / Querry I should use to do this....
3
by: melnhed | last post by:
---Report the current filtered records from a Form--- Hello All, I've seen this topic discussed before, but the solution described then doesn't work in my particular case. My Config: ...
16
by: radio1 | last post by:
---Report the current filtered records from a Form (in an ADP project)--- Hello All, I've seen this topic discussed before, but the solution described then doesn't work in my particular case. ...
1
by: roveagh1 | last post by:
Hi I've been using the 2 year old link below to repeat values from previous record field into current corresponding field. It's worked fine for text but the last piece of advice was to use the same...
4
by: magmike | last post by:
I've created a report for the purpose of printing a one page summary of a record. Of course, when I created the report, it gives me a page on every record. Can I create a button to open that report...
2
easydoesit
by: easydoesit | last post by:
Hello all, I am looking for a way to be able to enter data into fields on a form, then be able to e-mail a report that shows only that record. This is what I have thus far: At the end of my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.