ช่วยดูโค้ดให้หน่อยค่ะ Exportไฟล์txt
กระทู้เก่าบอร์ด อ.Yeadram

 616   1
URL.หัวข้อ / URL
ช่วยดูโค้ดให้หน่อยค่ะ Exportไฟล์txt

อยากExportไฟล์txt ให้ชื่อไฟล์เป็นววดดปป +เวลาปัจจุบันค่ะ
ที่ทำได้ตอนนี้ขึ้นแต่ววดดปป

โค้ดค่ะ
outputFileName = CurrentProject.Path & "\Receiving_" & Format(Date, "yyyyMMdd hh:mm:ss") & ".txt"
DoCmd.TransferText acExportDelim, , "QueryExport", outputFileName, True
    MsgBox "The Current File is located at " & Application.CurrentProject.Path & "."

ค่าที่ได้เวลาเปน0ค่ะแบบนี้ >>>>Receiving_20171027 00_00_00



1 Reply in this Topic. Dispaly 1 pages and you are on page number 1

1 @R24236
เปลี่ยนจาก   Format(Date, "...   เป็น   Format(Now, "...
@ ประกาศใช้งานเว็บบอร์ดใหม่ => บอร์ดเรียนรู้ Access สำหรับคนไทย
แล้วจะใส่ลิ้งอ้างอิงมาที่โพสต์เก่านี้หรือไม่ก็ตามสะดวกครับ
Time: 0.2760s