• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Problem using DeviceToDesktop with VB6

Hi

I've been using the DeviceToDesktop and DesktopToDevice api within vb6. Desktop to device works perfectly.

Unfortunately, DeviceToDesktop returns an error when I call it as follows :

lngRet = DEVICETODESKTOP(Desk.Text, "", False, True, Mob.Text)

The error I get is -2146824447. Both text boxes are filled in, with the correct path of an Access 2000 db and a pocket access db.

Anyone have any ideas why it could be failing?

Thanks

Jeremy
0
JezzaKashel
Asked:
JezzaKashel
  • 2
  • 2
1 Solution
 
eeyore7250Commented:
Note:

Pocket Access Databases have the extension .cdb
Pocket SQL Databases have the extension .sdf

So when you reference them on the device make sure you use this extension rather than the desktop extensions.
0
 
eeyore7250Commented:
Error: -2146824447
Description:The destination table may already exist on the desktop and Overwrite was set to False, or Overwrite was set to True but the table is not allowed to be overwritten. A log file may also display.
0
 
JezzaKashelAuthor Commented:
Hi Eeyore

Thanks for the reply. Really don't know why it was happening, but the problem is now fixed. I'm sure it was a simple error that
0
 
JezzaKashelAuthor Commented:
Hi Eeyore

Thanks for the reply. Really don't know why it was happening, but the problem is now fixed. I'm sure it was a simple error that I didn't notice. The log file is very useful.

Thanks

Jeremy
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now