Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. database question

database question

Scheduled Pinned Locked Moved C#
csharpquestiondatabasevisual-studiodesign
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nidhelp
    wrote on last edited by
    #1

    hi im using MS access database to keep my data and using visual studio .net 2003 to design forms... i want to know how to retrieve data from access to my forms in visual studio .net.. what codes must i write in visual studio .net or must i use some access wizard to do what i want? thanks!

    R 1 Reply Last reply
    0
    • N nidhelp

      hi im using MS access database to keep my data and using visual studio .net 2003 to design forms... i want to know how to retrieve data from access to my forms in visual studio .net.. what codes must i write in visual studio .net or must i use some access wizard to do what i want? thanks!

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      see System.Data.Oledb Namespace[^] Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

      N 1 Reply Last reply
      0
      • R Rob Graham

        see System.Data.Oledb Namespace[^] Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

        N Offline
        N Offline
        nidhelp
        wrote on last edited by
        #3

        ok, now i want to check with you> where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app? thanks!

        M T 2 Replies Last reply
        0
        • N nidhelp

          ok, now i want to check with you> where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app? thanks!

          M Offline
          M Offline
          Mohamad Al Husseiny
          wrote on last edited by
          #4

          nidhelp wrote: ok, now i want to check with you> where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app? if you have to get many data when you start your appliactio use splash screen to connect and get the data and when the you got the data show the form that deal with data But general rule try to separate the code that access and manipulate the database and put it in dll and call it from your win forms MCAD

          1 Reply Last reply
          0
          • N nidhelp

            ok, now i want to check with you> where do i write my codes to connect to my database from within my app? do i write the codes in a new form or the form i've been using all along to create my app? thanks!

            T Offline
            T Offline
            tatchung
            wrote on last edited by
            #5

            Its more of a preference for the programmer but security-wise and readability i agree it has to be put in a different form. I usualy do my queries in a different form, pass it to another dll for sorting, editing, etc then finally pass it to my win app or web app. Hope that helps! Kampai!!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups