Results 1 to 5 of 5

Thread: Convert VB 6 code to VB.NET Code [resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member craigreilly's Avatar
    Join Date
    Jul 2004
    Location
    Scottsdale, AZ
    Posts
    188

    Resolved Convert VB 6 code to VB.NET Code [resolved]

    How do I convert this to VB.NET. Everything I have seen so far needs to create DataAdapters and DataSets.
    Please help. Thanks.
    ==================================
    Dim db As Database
    Dim dblocation As String
    dblocation = App.Path & "\mtb.mdb"
    Set db = OpenDatabase(dblocation)
    Set rsjobs = db.OpenRecordset("jobs", dbOpenTable)

    rsjobs.AddNew
    rsjobs("jobid") = jobid.text
    rsjobs("job name") = jobname.text
    citylen = Len(Text2)
    rsjobs.update

    rsjobs.close
    db.close
    Last edited by craigreilly; Oct 8th, 2004 at 06:25 PM.

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