Article ID: 196034
Article Last Modified on 3/14/2005
238947 FILE: Msadoce2.exe Installs ADO for Windows CE SDK
SELECT Authors.* INTO Authors2 FROM Authors WHERE (Authors.AU_id < 50)This will create a new table called "Authors2" with the data from the original Authors table.
Private Declare Function DESKTOPTODEVICE _
Lib "c:\program files\windows ce services\adofiltr.dll" _
(ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
Private Declare Function DEVICETODESKTOP _
Lib "c:\program files\windows ce services\adofiltr.dll" _
(ByVal desktoplocn As String, _
ByVal tablelist As String, _
ByVal sync As Boolean, _
ByVal overwrite As Integer, _
ByVal devicelocn As String) As Long
Dim result As Long, sPath As String, sTableList As String
spath = "c:\Program Files\DevStudio\VB\biblio.mdb"
sTableList = "Authors2.."
' Change mouse pointer to hourglass.
Screen.MousePointer = vbHourglass
' import table from remote device.
result = DEVICETODESKTOP( sPath, sTableList, False, False, "")
' Return mouse pointer to normal.
Screen.MousePointer = vbDefault
If result = 0 Then
MsgBox "Transfer Successful"
Else
MsgBox "An error occurred transferring the data: " & result
End If
Dim result As Long, sPath As String, sTableList As String
spath = "c:\Program Files\DevStudio\VB\biblio.mdb"
sTableList = "Authors2.."
' Change mouse pointer to hourglass.
Screen.MousePointer = vbHourglass
'Export table to remote device.
result = DESKTOPTODEVICE(sPath, sTableList, False, False, "")
' Return mouse pointer to normal.
Screen.MousePointer = vbDefault
If result = 0 Then
MsgBox "Transfer Successful"
Else
MsgBox "An error occurred transferring the data: " & result
End If
NOTE: The paths given in the declaration and procedures are for default
Installations; modify them according to your system.
Additional query words: wce adoce dao ado wince vbce vbce5 vbce6
Keywords: kbhowto kbapi kbtoolkit kbdatabase KB196034