Results 1 to 7 of 7

Thread: [RESOLVED] c# cannot connect to dbase

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Resolved [RESOLVED] c# cannot connect to dbase

    hi,
    I have a connection in vb6 and dbase works good.
    VB Code:
    1. DbPath = "Microsoft Dbase driver (*.dbf)"
    2. With Cn
    3. .ConnectionString = "driver={" + DbPath + "};dbq=D:\INS2002\DBF"
    4. .Open
    5. End With

    but what is wrong of my code when i transfer this code to c# it appears an error.
    VB Code:
    1. string DbPath = "Microsoft Dbase driver (*.dbf)";
    2. OleDbConnection dbcon = new OleDbConnection();
    3. dbcon.ConnectionString ="driver={" + DbPath + @"};dbq=D:\INS2002\DBF";
    4. dbcon.Open();
    Anyone about this.

    note : pls see picture attachment.

    Popskie
    Last edited by popskie; Mar 22nd, 2007 at 02:21 AM.

  2. #2
    Hyperactive Member fret's Avatar
    Join Date
    Sep 2004
    Posts
    472

    Re: c# cannot connect to dbase

    maybe this would help.

    here

  3. #3

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: c# cannot connect to dbase

    thanks fret. do you have a phone no. so that i can call u.

  4. #4
    Hyperactive Member fret's Avatar
    Join Date
    Sep 2004
    Posts
    472

    Re: c# cannot connect to dbase

    I'm in the Philippines

  5. #5
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: [RESOLVED] c# cannot connect to dbase

    [Out of topic]

    Maybe Mr. Popskie is a Mandauehanon?

  6. #6

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: [RESOLVED] c# cannot connect to dbase

    tag an ka part.

  7. #7
    Hyperactive Member fret's Avatar
    Join Date
    Sep 2004
    Posts
    472

    Re: [RESOLVED] c# cannot connect to dbase


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