Hi everyone,
I have button on my form that exports the content of a query to a file. There are two things I want to alter:
1. I want the users to be able to use MS Explorer to save the file - instead of the input messagebox (see code below)
2. I want the output to be csv
but I don't know how...
Pampers![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
You never too young to learn
I have button on my form that exports the content of a query to a file. There are two things I want to alter:
1. I want the users to be able to use MS Explorer to save the file - instead of the input messagebox (see code below)
2. I want the output to be csv
but I don't know how...
Code:
Private Sub Command47_Click()
Dim Message, Title, Default, MyValue
Message = "Enter a FileName" ' Set prompt.
Title = "EDI Messagebox" ' Set title.
Default = "C:\Documents and Settings\alaerds\My Documents\FileName.txt" ' Set default.
'Display message, title, and default value.
MyValue = InputBox(Message, Title, Default)
DoCmd.TransferText acExportDelim, , _
"qryContainerMovesEDI", MyValue
Pampers
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
You never too young to learn