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

writing code to output form to .xls

Status
Not open for further replies.

hockeyman9474

IS-IT--Management
Oct 11, 2007
17
US
I don't want to set this up as a macro. I would like to write a line to prompt a user to save a form as .xls. Here is where I am:


docmd.OutputTo(acOutputForm,New Contract,(*.xls))

it's looking for an (=) sign somwhere. Where am I wrong.
 
I think it needs a defining

Dim strTemp

strTemp = DoCmd.OutputTo(acOutputForm, New Contract, ("*.xls"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top