Re: Using variable name in transferSpreadSheet Method
- From: Westeral <Westeral@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 31 May 2009 15:02:17 -0700
Thanks much. I see what I was doing wrong now. I was close but now this will
be me there and this does exactly what I need.
--
Westeral
"tina" wrote:
to build on Ken's example:.
"c:\temp\" & Forms!NameOfForm!NameOfControl1 &
Forms!NameOfForm!NameOfControl2 &
Forms!NameOfForm!NameOfControl3 & ".xls"
hth
"Westeral" <Westeral@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:28C508A2-87C8-4CB0-A7D8-56EF1E2081B2@xxxxxxxxxxxxxxxx
Thanks, that will help me out in creating the name I want. How do I addthe
concatenated name I created to the transferspreadsheet command? Right nowHow
the name of the file I want created is in quotes (ie "c:\temp\test.xls").
do I insert my variable (concatenated name) in place of the test.xls?method
--
Westeral
"Ken Snell [MVP]" wrote:
See my website for various examples of TransferSpreadsheet with ACCESS.
http://www.accessmvp.com/KDSnell/EXCEL_MainPage.htm
As for concatenating values from controls of a form:
Forms!NameOfForm!NameOfControl1 & Forms!NameOfForm!NameOfControl2 &
Forms!NameOfForm!NameOfControl3
--
Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/
"Westeral" <Westeral@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7D5858EB-9B2F-4EF2-9E6F-34B2ACFF9FA9@xxxxxxxxxxxxxxxx
I am attempting to use variable names in the transferSpread sheet
nameinstead of just putting in the name. I want to create a spreadsheet
datebased on the concatenation of several fields on a form to generate a
unique
name for the spreadsheet each time it is generated (area name, begin
centralfield, and end date field). These spreadsheets are to be sent to a
evenstate location where they will be imported into a central database. I
wanted
a way to create a unique name for the file from each area. Is this
possible or should I just use some other method to accomplish this?
Thanks.
(I will be on vacation all next week so I won't see any response until
6/8/09).
--
Westeral
- Follow-Ups:
- References:
- Using variable name in transferSpreadSheet Method
- From: Westeral
- Re: Using variable name in transferSpreadSheet Method
- From: Ken Snell [MVP]
- Re: Using variable name in transferSpreadSheet Method
- From: Westeral
- Re: Using variable name in transferSpreadSheet Method
- From: tina
- Using variable name in transferSpreadSheet Method
- Prev by Date: Re: Open import dial. box to select csv
- Next by Date: Re: Open import dial. box to select csv
- Previous by thread: Re: Using variable name in transferSpreadSheet Method
- Next by thread: Re: Using variable name in transferSpreadSheet Method
- Index(es):
Relevant Pages
|