Results 1 to 3 of 3

Thread: Update MS access table with the data from file

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    263

    Question Update MS access table with the data from file

    Hi,

    Can anyone help me how to update an MS access table based on the date im reading from my file?

    I have table name "PROFILE" and I'm getting the update of it from HTML/TXT file.

    The table having 2 columns (NAME, SURNAME). I want to clear all the content of table "PROFILE" before the below codes run.

    Let say from HTML:

    <name>Asher</name>
    <visibility>1</visibility><open>0</open>
    <Folder id="1">
    <surname>David</surname>
    <visibility>1</visibility><open>0</open>
    <Placemark>



    Now here is my sample code:

    Code:
    Do While Not EOF(1)
        Line Input #1, InputData
        
        If Left(InputData, 6) = "<name>" Then
                     ' Update column "NAME" containing Mid(InputData,10,x)
        End If
    
        If Left(InputData, 9) = "<surname>" Then
                     ' Update column "SURNAME" containing Mid(InputData,10,x)
        End If
    
    Loop
    Close MyReadNum

    ANy help? How can I also determin fast the value of x to put in my MID statement? Im doing it in VBA ms access
    Last edited by Asher David; Oct 13th, 2008 at 06:03 AM.
    "Its easy to teach FAITHFUL MAN to be ABLE than ABLE MAN to be FAITHFUL"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width