|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Creating a delimited text file
It's me, the noob, again. My project is going well, but now I'm into the thick of it.
I need to create a delimited .txt file using information from an access database. I have been using DAO thus far. I am having trouble finding any documentation that tells me how to pull an individual field from a record and write it to file. Any help/advice would be greatly appreciated (once again). thanks, Jason |
|
#2
|
|||
|
|||
|
i assume you know how to get one field from the database.
writing to a file isn't hard in vb6: Code:
' open file for write
Open FilePathAndName For Output As #1
' loop through rows
Write #1, rs.Fields.Item("SomeField").Value
' end loop
Close #1
i'm sure you should be able to find lots of source code on how to write to files in vb6.
__________________
Programmer's Corner |
|
#3
|
|||
|
|||
|
actually, that's the one thing i was having a hard time finding. How to actually pull the one field out of the db. heh, just unlucky google searches, I guess. Thanks a lot.
jason |
|
#4
|
|||
|
|||
|
do you know any sql? it's about the only way you could only select on field from a table.
Code:
SELECT SomeField FROM SomeTable |
|
#5
|
|||
|
|||
|
I'm somewhat familiar with SQL. I just haven't used it in over 1 year.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Creating a delimited text file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|