meo lap trinh

Export và Import ra tập tin text từ Access (VB). Hiện nay các bạn yêu thích lập trình sử dụng Access là nguồn chứa dữ liệu khá phổ biến vì đơn giản, dễ quản trị và đáp ứng được yêu cầu công việc. Hôm nay chúng tôi xin giới thiệu một đoạn code để export và import ra tập tin text từ Access (VB). Export Text (Flat file) từ Access Ms-Access Option Explicit Public Sub Export_Table_2_TextFile() On Error GoTo LocalErrorHandler Dim dbCompany As Database Dim rsGeneral As Recordset Dim ExpGeneral As PubExpGeneral Dim blnTab_Text As Boolean Dim FullName As String Dim FileHandle As Byte Dim strFileToExport As String Dim chkFileExist As String 'Give Path with File name FullName = E:\General ' Thu muc chua du lieu, ban co the thay doi theo nhu cau của minh blnTab_Text = False Set dbCompany = OpenDatabase(FullName)