Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View From SP forget it.

Status
Not open for further replies.

UrlOnz

Programmer
Dec 19, 2003
6
US
Ok, everyone said don't try to alter a view from an SP. The problem was getting a SP to be the RecordSource for a report in the Access front end. I put the proc in as the RecordSource and hard coded a parameter and the report ran. Then I make a form where the user entered the parameter in a text box and clicked a command button. The code behind the command button reset the focus to the text box (you need that to get the text copied to a variable in the next step) and then opened the report. The reports open event assigned the text boxes text to a variable and then set the RecordSource to the proc with the variable as the parameter. It worked
Someone suggested that the parameter could be put in the report’s Input Parameters, but that did not work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top