Solved

it's that possible to open  a report with vba on a form that will also feed the report  record source - in access 2013

Posted on 2013-11-03
2
778 Views
Last Modified: 2013-11-03
hi

is there some way to feed the record source from a report with vba on the form that will open the report and then feed the record source

something like this
DoCmd.OpenReport "TotalIncomeR", acViewPreview
Reports!TotalIncomeR.RecordSource = sqlstr

Open in new window

0
Comment
Question by:bill201
[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
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39620461
Try this:


DoCmd.OpenReport "TotalIncomeR", acViewPreview, OpenArgs := sqlstr

Open in new window


And in the Open Event of the report:

Me.Recordsource = Me.OpenArgs

Open in new window

0
 

Author Closing Comment

by:bill201
ID: 39620505
thanks alot
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

691 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