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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export problem pls read...

Status
Not open for further replies.

joelxez

Programmer
Apr 18, 2002
67
0
0
PH
Dear experts,

I have a code below which call the empID in the Reports and match the empID of the current Form to export the current empID of the form, what happen is only the first record was display...pls. help me?
____________________________________________________________
Dim stDocName As String

stDocName = "EmployeeReports"

DoCmd.OutputTo acReport, stDocName, acFormatRTF, "C:\Employee.rtf", True, "WHERE [empID]= & Me![EmpID]"

____________________________________________________________

joelxez@yahoo.com

Joel,
 
I've overcomed this problem when I first opened the Report with the specifyed "where condition" and then executed the OutputTo method. After I close the report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top