Output to Excel Question

  • Thread starter P-chu via AccessMonster.com
  • Start date
P

P-chu via AccessMonster.com

I need to output my list box results in a form to exce without creating a
query to do it. Could someone critique this or give me another sample?


DoCmd.OutputTo acQuery, ([Forms]![customers]), acFormatXLS, "*.xls", True

The list box name is lstCust and it is new customer information based on
selected dates. I'm sure I am just missing something very minor.

Thanks.
 
A

akphidelt

Not sure if you can send a list box like that, but it would be extremely easy
to output a query that creates the listbox to excel.
 
P

P-chu via AccessMonster.com

I got it figured out. Thanks anyway.
Not sure if you can send a list box like that, but it would be extremely easy
to output a query that creates the listbox to excel.
I need to output my list box results in a form to exce without creating a
query to do it. Could someone critique this or give me another sample?
[quoted text clipped - 5 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top