davesmith202
Employee of Access World
- Local time
- Today, 07:24
- Joined
- Jul 20, 2001
- Messages
- 522
I have some code that outputs a single file but I want to modify this so it outputs multiple files. Currently, my code is:
How do I modify that so that I can output 3 seperate files, one for strA. strB and strC, for field A, B and C respectively?
Thanks,
Dave
Code:
Private Sub cmdSave_Click()
Dim strFile As String
Dim strA As String
strFile = "C:\Documents and Settings\Dave\Desktop\" & "A-Data" & DefaultID & "-" & Replace(Time, ":", "-") & ".csv"
strA = A
Open strFile For Output As #1
Print #1, strA
Close #1
End Sub
How do I modify that so that I can output 3 seperate files, one for strA. strB and strC, for field A, B and C respectively?
Thanks,
Dave