Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

pass value from main report to subreport

pass value from main report to subreport

pass value from main report to subreport

I need to pass a date value from the main report if there isn't any corresponding record in the subreport.

in the I have a field text10 that has this as a control source =[Reports]![UserReport570]![ncvalue]

where userreport570 is the mainreport.

Requirements are if there isn't any record in the subreport query (which is valid), then use the ncvalue from the mainreport
My text box in the subreport is


so if there isn't an enforce date on the subreport query, then print the ncvalue from the main query

I keep getting blanks when I run the report.
Did I reference the value from the main report wrong?

RE: pass value from main report to subreport

Consider trying a control source of:

CODE --> ControlSource


Hook'D on Access
MS Access MVP

RE: pass value from main report to subreport

Ahhh missed the parent :) Thanks

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close