※ 引述《BLUEBU (qt)》之銘言:
: 我現在想從資料庫中的欄位讀取之後寫入筆記本中
: 資料庫假設為a 資料表為data 請問要如何把data中的欄位1與2依照順序寫入txt中
: 希望資料能連續寫入,也就是說不換行.
: 謝謝解答
假設用Text1連結欄位1,Text21連結欄位2
dim g as string
data.recordset.movefirst
while data.recrodset.eof <>true
g=text1 & text2
data.recordset.movenext
wend
open "a.txt" for output as #1
print #1,g
close #1
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.75.203.158