axism
MIS
- May 17, 2005
- 58
Hi, I created a view name queryExtractData in sql server 2000, which returns a few columns in tables and I am trying to export the result of the returned columns to a text file using DoCmd.TransferText. I have a button and the code following was what i typed in the on click event for button.
Code:
Private Sub cmdExtract_Click()
DoCmd.TransferText acExportFixed, , "queryExtractData", "c:\mytest\test.txt"
End Sub
And it's saying queryExtractData is not define when i click on button. Please help!