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!

Simple code question

Status
Not open for further replies.

gcole

Programmer
Aug 2, 2000
390
US
What is the command to run reports or other forms from a command buttom click event in a form? I have tried access vbscript and foxpro codes but they are incorrect.
 
A report I designed from the data environemt that I set up.
 
you need to invoke the show method of the data report. an example would be
datareport1.show

where datareport1 is the name of the data report.
 
Assume Rs is a recordset obtained by whatever method and report1 is the name of a VB data report.

Set report1.DataSource = Rs

report1.Show
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top