Download Access DB to Handheld Device


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Download Access DB to Handheld Device

  1. #1
    Join Date
    May 2007
    Posts
    59

    Download Access DB to Handheld Device

    I'm making a program where I need to download an access database to my handheld device. I can't get the connection to work. The language I need to write it in is VB.NET and I'm downloading the database from a standard FTP site.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    What is the connection code that you are using?

    Are you using VB.NET 2005?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    May 2007
    Posts
    59
    This are my global variables where I declare the connection settings:

    Code:
    Private DBName As String = "\My Documents\dokter.sdf"
        Private localDBConnection As String = "Data Source = " & DBName
        Private IISUrl As String = "ftp://***/private/dokter.mdb"
        Private serverDBConnection As String = "Provider=OLEDB.4.0;Data Source=(local);Initial Catalog=dokter.mdb"
    The *** is to keep that site hidden, sorry to do this, but my school has had hacker problems. I'm just being careful.
    And here is how I try to make the connection.

    Code:
    Dim connectie As SqlCeConnection = New SqlCeConnection(localDBConnection)
            connectie.Open()
    
            Dim command As SqlCeCommand = New SqlCeCommand("Select id, uur From tblAfspraak Where datum = " & Now().Date, connectie)
            Dim reader As SqlCeDataReader = command.ExecuteReader()
    
            Do While reader.Read
                ComboBoxAfspraken.Items.Add(reader("uur"))
            Loop
    
            connectie.Close()
    The point is to download the database from the server to my handheld.

    And yes, the language is VB.NET 2005.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    What are the connection errors that you get?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Access 97 to 2000 Conversion Error
    By Michelle in forum VB Classic
    Replies: 8
    Last Post: 04-19-2002, 06:01 PM
  2. Access to SQL server
    By Nate in forum Database
    Replies: 29
    Last Post: 05-09-2001, 11:04 AM
  3. Replies: 0
    Last Post: 11-20-2000, 06:37 AM
  4. Access 97 Synchronization
    By Ian Harris in forum VB Classic
    Replies: 0
    Last Post: 05-20-2000, 02:41 PM
  5. Access 2000 automation from VB6
    By Mak Foka in forum authorevents.kurata
    Replies: 3
    Last Post: 04-18-2000, 09:21 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center