TransferText with a Stored Procedure

B

BK

I'm having a bit of a problem with a transfertext operation. Below is
my code...extremely simple, with probable word wrap.

Private Sub cmdGenerateFile_Click()

'DoCmd.OpenStoredProcedure "dbo.GasSalesExport"
DoCmd.TransferText acExportDelim, , "dbo.GasSalesExport",
"c:\pcidb\NewGasSalesExport.txt"

End Sub

Note that the first line is commented out. When I run this code I get
an error saying that it can't find the object "dbo.GasSalesExport."
I've tried it with and without the dbo part. However if I uncomment the
first line it opens up the stored procedure without problem (but only
when I have the dbo part), so it's definitely there and recognizes it.
Can I not do transfer text with a stored procedure?

TIA,
Bill
 

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