Hello All,
I am trying to process many text files and then i am trying to update the access database after getting the values in a specific variable.
See the following Code which i have made in order to process.
Sub MELCon(ByVal FILE As String)
Dim n As Integer
Dim textline As String
textline = filereader.ReadLine() & vbNewLine
For n = 0 To 83
If textline.Contains("MELID=" & n & ";") Then
TextBox1.Text = n
MELID = n
Exit Sub
End If
Next
End Sub
The above code will read textfile and in the first line look for the string MELID=n; (where n could be any number from 0 to 83). Once found, i have stored it in another Variable MELID. Now i want the value of MELID to be updated in ACCESS DATABASE !
Kindly help me guys, i haven't worked with database before !! I have created the access database with 2 tables in it. I want to update/insert it in a single column of 1st Table.
I am trying to process many text files and then i am trying to update the access database after getting the values in a specific variable.
See the following Code which i have made in order to process.
Sub MELCon(ByVal FILE As String)
Dim n As Integer
Dim textline As String
textline = filereader.ReadLine() & vbNewLine
For n = 0 To 83
If textline.Contains("MELID=" & n & ";") Then
TextBox1.Text = n
MELID = n
Exit Sub
End If
Next
End Sub
The above code will read textfile and in the first line look for the string MELID=n; (where n could be any number from 0 to 83). Once found, i have stored it in another Variable MELID. Now i want the value of MELID to be updated in ACCESS DATABASE !
Kindly help me guys, i haven't worked with database before !! I have created the access database with 2 tables in it. I want to update/insert it in a single column of 1st Table.