reading from an access database into textboxes using C#

Discussion in 'Programming' started by arpanmukherjee1, Jul 3, 2009.

Thread Status:
Not open for further replies.
  1. arpanmukherjee1

    arpanmukherjee1 XLr8

    Joined:
    Sep 24, 2008
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    0
    i'm having problems reading information from my database and posting them into textboxes on my windows form so i can perform functions on them/ i'm trying to use the OLedb but i just can't figure it out


    any help would be greatly appreciated
     
  2. adatapost

    adatapost New Member

    Joined:
    Jul 5, 2009
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India/Gujarat/Mehsana
    Here is code snippet for you:
    1. Create an instance of OledBConnection
    2. Create an instance of Olddbcommand
    3. If you want to fetch a singlevalue then open a connection and invoke the ExecuteScalar() method.
    If you want to fetch multi-value then invoke ExecuteReader method.

    Reply, if you get solution or problem.
     
  3. OP
    OP
    arpanmukherjee1

    arpanmukherjee1 XLr8

    Joined:
    Sep 24, 2008
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    0
    can you please post the coding ??????
     
  4. popper1987

    popper1987 New Member

    Joined:
    Sep 13, 2005
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    use" bindingmanagbase command"......
     
Thread Status:
Not open for further replies.

Share This Page