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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now