zizerzizer
New Member
- Joined
- Jan 5, 2022
- Messages
- 1
- Office Version
- 2016
- Platform
- Windows
Hi. How to import this exported queries:
Code:
Sub ExportQueries()
Dim db As Object
Dim qdf As Object
Dim ff As Long
Set db = CurrentDb
ff = FreeFile()
Open "C:\Queries.txt" For Output As #ff
For Each qdf In db.QueryDefs
Print #ff, "Query: " & qdf.Name & vbCrLf
Print #ff, "SQL:" & vbCrLf
Print #ff, qdf.SQL & vbCrLf
Next qdf
Close #ff
End Sub
I need to change data and import again to Microsoft access.
Code:
Sub ExportQueries()
Dim db As Object
Dim qdf As Object
Dim ff As Long
Set db = CurrentDb
ff = FreeFile()
Open "C:\Queries.txt" For Output As #ff
For Each qdf In db.QueryDefs
Print #ff, "Query: " & qdf.Name & vbCrLf
Print #ff, "SQL:" & vbCrLf
Print #ff, qdf.SQL & vbCrLf
Next qdf
Close #ff
End Sub
I need to change data and import again to Microsoft access.