I am looking for the code that will allow user to select .txt file and then to import into access and update a predefined table. The data in the .txt is tab delimited.
Dim Ext
Dim BackupSearch As String
Dim ErrCode As String
Dim Acct As String
Dim FBErr As String
Dim Fil As Integer
Dim Pos As Integer
Dim XPos As Integer
Dim PrepVer As Boolean
Dim PrepSoc
Dim Today
ByPass:
7000 XPos = XPos + 1
7100 Select Case Len(CStr(XPos))
Case 1
7200 Ext = "00" & CStr(XPos)
7300 Case 2
7400 Ext = "0" & CStr(XPos)
7500 Case 3
7600 Ext = CStr(XPos)
7700 End Select
7800 Loop
7900 If CloseG Then DoCmd.Close acForm, "G"
8000 Forms!StatusBox!Status.Caption = "Completed with Confirmation File(s)..."
8100 DoEvents
8200 Rst.Close
8300 Wait1
8400 Wait1
8500 DoCmd.Close acForm, "StatusBox"
I just did a quick copy and paste - a lot of this stuff, will not make sense to you, but maybe just use that which you feel will be beneficial to you. Roy McCafferty
aka BanditWk
Las Vegas, NV
roy@cccamerica.org
RLMBandit@aol.com (private)
"I do this because I know I can - no need to send gifts - just send me a smile to show me that I've helped." ~ seen on a cardboard sign held by Roy McCafferty on a corner in Las Vegas
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.