G
Guest
The code below I use to output a field of data as I build it into a SQL
INSERT statement. When the original table is updated (tPath Field) it is OK,
but when inserting tPath via SQL, after the string gets to 188 charactors it
exports garbage like this: 颼ᩢǡĀ退ê²å£¡é”–Ï¡Ä€á €æ€ˆé¢¼á©¢Ç¡Ä€ .
For i = 1 To objTree.Nodes.Count
tPath = objTree.Nodes(i).FullPath
DoCmd.SetWarnings False
DoCmd.RunSQL ("INSERT INTO OutputBOM ( Output1 ) Select tPath")
DoCmd.SetWarnings True
Next
the code loops through each node of my tree and then outputs the FullPath
(tPath) into the OutputBOM table.
I am familure with getting recordset to Excel, is there a way to get tPath
into a recordset without writing into a table? Or some other method of
passing tPath to Excel?
INSERT statement. When the original table is updated (tPath Field) it is OK,
but when inserting tPath via SQL, after the string gets to 188 charactors it
exports garbage like this: 颼ᩢǡĀ退ê²å£¡é”–Ï¡Ä€á €æ€ˆé¢¼á©¢Ç¡Ä€ .
For i = 1 To objTree.Nodes.Count
tPath = objTree.Nodes(i).FullPath
DoCmd.SetWarnings False
DoCmd.RunSQL ("INSERT INTO OutputBOM ( Output1 ) Select tPath")
DoCmd.SetWarnings True
Next
the code loops through each node of my tree and then outputs the FullPath
(tPath) into the OutputBOM table.
I am familure with getting recordset to Excel, is there a way to get tPath
into a recordset without writing into a table? Or some other method of
passing tPath to Excel?