|
-
Jul 17th, 2010, 01:34 PM
#1
Thread Starter
PowerPoster
Concatenate string with ";"
I looping recordset....
I need to create a string deleimited from ";" for each row in table, but the code dont work correct!
NEWSQL1 = ""
NEWSQL = ""
I = 2
Do While Not RST.EOF = True
For J = 0 To RST.Fields.Count - 1
NEWSQL = Trim(RST.Fields(J).Value)
NEWSQL1 = NEWSQL & ";"
Debug.Print NEWSQL1
Next J
Print #1, NEWSQL
RST.MoveNext
I = I + 1
Loop
Note:
In other case is required the last ";" if i want to import in access datatable the txt file?
Last edited by luca90; Jul 17th, 2010 at 01:44 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|