I want to open a report from a form. I also want a value to be passed to that report from the form. How to do?
What did you try till now…
did you search the forum?
look at your posts, why dont you read basic documents like w1w1adg.pdf or take help from your senior technical persons?
How to search the forum?
Can you see “Search this site” option in top right side…
Check this you will get an idea
The syntax is
Create a button on the form. Then write a code to run a report on ‘OnPushButton’ trigger of that button.
For your second query, you can use setrange to directly pass a value to request form of report or DataItemReq field of report.
you just create 1 command button, in on push() you need to write :
Report.RUNMODAL(Rep Id, (Req Window),(Sys Print),Rec);