Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Reporting issue

Posted on 2013-11-11
1
Medium Priority
?
228 Views
Last Modified: 2013-11-11
Hello Experts,

I have a contineous form in ms access with a summary of names.

I want to preview the details in a report preview of a particular name if i click the text box

Example:

Names

1. XXX
2. YYY
3. AAA
4. RRR
5. WWW

if i select and click "XXX" from the contineous form

a report preview will open with the corresponding details of information related to XXX

I hope that you will help me

Thanks,

Czher
0
Comment
Question by:Czher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 61

Accepted Solution

by:
mbizup earned 2000 total points
ID: 39638432
You can do this with VBA in the click event of the Name field:
Private Sub YourNameTextBox_Click()
       Docmd.OpenReport "YourReportName", acViewPreview, WhereCondition := "YourNameField = '" & Me.NameField & "'"
End Sub

Open in new window


You'll have to change that to use your exact names for textbox, fields and report.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question