Results 1 to 6 of 6

Thread: I Need Help

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2006
    Posts
    52

    I Need Help

    Hi evrybody

    I want to connect my vb.net application over the network to Ms Access database?

    And can i change the my access database to foxpro with out effecting
    in the source code of my vb.net application.

    Thanks in Advance

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: I Need Help

    Quote Originally Posted by startnow
    And can i change the my access database to foxpro with out effecting in the source code of my vb.net application.
    The source code would have to be modified as each database requires a different connection string.

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: I Need Help

    Quote Originally Posted by startnow
    I want to connect my vb.net application over the network to Ms Access database?
    Is that a question or a statement?

    Your mdb file would need to be in a shared folder that the users have read/write access to.

    The VB.Net would need a connection string to that folder, so perhaps an ini file or a registry place holder. You'd need a form or a separate app to locate the back end mdb and store the path. Should work ok though once you have the path. Not sure if .Net allows a install to type thing? might be able to get it to ask the user where the back end should go...?

    Read up on the distributing .net projects online?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    396

    Re: I Need Help

    I want to connect my vb.net application over the network to Ms Access database?
    If you are connecting over a LAN the answer is Yes. If by network you mean the internet then it is not possible to connect directly to an Access database. There are work arounds that will allow you to do this using other Microsoft products.

    And can i change the my access database to foxpro with out effecting in the source code of my vb.net application.
    At the very least you will have to create a new connection string for Foxpro. You could handle this in your code by giving the user a menu option or checkbox option to choose which database type you want.

    Ecniv's suggestion that you create an ini type file is the one that I use most often.

    When you talk about changing your Access DB to Foxpro do you mean converting your Access DB to Foxpro? You may run into issues with data types and how Foxpro distinguishes dates, numbers, text when running queries.

  5. #5

    Thread Starter
    Member
    Join Date
    Dec 2006
    Posts
    52

    Re: I Need Help

    Ok am trying to connect over local LAN so how the string will looks like after
    connecting is it like this:-
    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\192.165.132.212\SaveTree.mdb

    and yah i need to convert the data file from access to Foxpro so i did it but still shows me some error in the .Net

  6. #6
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    396

    Re: I Need Help

    As far as I know Access does not use IP addresses so your connection string should look something like...

    Code:
    yourDbConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=u:\someFolder\SaveTree.mdb;Persist Security Info=False"
    I don't use Foxpro so I don't know what it's connection string will look like.

    What error are you getting and where does it occuir in your code? Showing the code you are using would be helpful.

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