Re: Importing Excel Spread*** based on date in Form
- From: Klatuu <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 07:01:02 -0700
Sorry, Doug. I didn't scroll down to see that.
--
Dave Hargis, Microsoft Access MVP
"Douglas J. Steele" wrote:
"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:C7921BAD-9437-46F9-B06C-1AF369F59CEC@xxxxxxxxxxxxxxxx
Doug answered the basic question, but you have a design issue here. I
don't
think you really want to have to change your code periodically to do this.
There is a better way.
Private Sub datemo_AfterUpdate()
Dim strFilePath As String
strFilePath = "V:\Diane for Access\" & Format([datemo],"mm mmmm yyyy")
&
" Vendor Billingtest.xls"
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "miscbilling", _
strFilePath, True, "miscbilling"
And how is that different than my second solution? (Yeah, there was a typo:
I meant to say "you should probably simplify that to", rather than "you
could...")
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
- References:
- Importing Excel Spread*** based on date in Form
- From: Diane
- RE: Importing Excel Spread*** based on date in Form
- From: Klatuu
- RE: Importing Excel Spread*** based on date in Form
- From: Diane
- RE: Importing Excel Spread*** based on date in Form
- From: Klatuu
- Re: Importing Excel Spread*** based on date in Form
- From: Douglas J. Steele
- Importing Excel Spread*** based on date in Form
- Prev by Date: Re: Importing Excel Spread***
- Next by Date: Re: Importing Excel Spread***
- Previous by thread: Re: Importing Excel Spread*** based on date in Form
- Next by thread: Re: Importing Excel Spread*** based on date in Form
- Index(es):