I need to export data into a sequential text file. Does anyone know how of some vba code that would do this?
Eg of file format.
Header Block
Text Block
Trailer Block
Enf of File Block
eg of a File with 2 records.
Header = ddmmccyy
Txn Ref = ABC001
Currency= GBP
Amount = 125.30
Trailer =...
Function Positions_History_Download()
On Error GoTo Error_Handler
Dim StaticFileName As String
Dim StrInput As String
DoCmd.SetWarnings False
DoCmd.OpenQuery "Trading_Positions_Delete_Qry", acViewNormal
DoCmd.SetWarnings True
StrInput = InputBox("Enter Required Business Date YYYYMMDD")...
I need to export data into a sequential text file. Does anyone know how of some vba code that would do this?
Eg of file format.
Header Block
Text Block
Trailer Block
Enf of File Block
eg of a File with 2 records.
Header = ddmmccyy
Txn Ref = ABC001
Currency= GBP
Amount = 125.30
Trailer =...
Chrisstiaan,
I have created a module that prompts the user to enter a date in a text format of "yyyymmdd" into an inputbox. the variable is declared as DIM as String.
This variable is then used as part of a file name and destination and is used to import a csv into access and create a table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.