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
765 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
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

828 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