INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

Option Box to control query to a report

Option Box to control query to a report

(OP)
Hi,
Have an option group on a form which control the data on a form as below

CODE

Private Sub SelectGroup_AfterUpdate()
Select Case Me!SelectGroup
Case 1
Me.RecordSource = "qryCountCheck-TI"
Case 2
Me.RecordSource = "qryCountCheck-SG"
End Select
End Sub 

I just want this same data thats on the form to be on the report per option selection.
I put this on the query criteria on the Group field,as this is the field for data selection.

CODE

[forms]![Count Reconciliation]![SelectGroup] 
but no luck. Am I on the right track?
Thank you
KP


RE: Option Box to control query to a report

An option group returns a numeric value typically 1,2,3, or ... Does the [Group] field store similar values? If not, what are the possible values and how do they relate to the values of the option group?

Duane
Vevey, Switzerland
Hook'D on Access
MS Access MVP 2001-2016

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!

Resources

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