Hi Everyone.
In my project I tried when I clicked on a button, to create a file.txt with all the informations that contains a table of my db.
Here my code:
Private Sub bBackup_Click()
Dim SQL_query As String
Dim Path As String
Path = "c:/test.txt"
SQL_query = "select * from valori15min into outfile " & Path
DoCmd.RunSQL SQL_query
End Sub
When I try to run, I have an error that say I have an error with the sintax of the FROM (run-time error '3131').
Anybody can help me or suggest me another way to do this job?
Thx a lot, greetings
In my project I tried when I clicked on a button, to create a file.txt with all the informations that contains a table of my db.
Here my code:
Private Sub bBackup_Click()
Dim SQL_query As String
Dim Path As String
Path = "c:/test.txt"
SQL_query = "select * from valori15min into outfile " & Path
DoCmd.RunSQL SQL_query
End Sub
When I try to run, I have an error that say I have an error with the sintax of the FROM (run-time error '3131').
Anybody can help me or suggest me another way to do this job?
Thx a lot, greetings