C
cj2
I just wrote a 2008 program with one button to provide an easy way to
set a flag in an old foxpro table. I compile it and put the exe on a
network drive. I made an icon on my desktop and ran the program and it
works. I then put the icon on another pc and tried to run the program
and I got:
Unhandled exception has occurred in your application. If you click....
ERROR [IM001][Microsoft][ODBC Driver Manager] Driver does not support
this function
Here is my code:
Imports System.Data.OleDb
Imports System.Data.Odbc
Public Class Form1
Dim myOdbcConnection As New OdbcConnection
Dim myOdbcCommand As New OdbcCommand
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
myOdbcConnection.ConnectionString = "Driver={Microsoft Visual
FoxPro
Driver};SourceType=DBF;SourceDB=c:\;Exclusive=No;Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO;"
myOdbcCommand.Connection = myOdbcConnection
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
myOdbcCommand.CommandText = "update i:\webvalidate\systemcfg
set Flag = '0'"
myOdbcConnection.Open()
myOdbcCommand.ExecuteNonQuery()
myOdbcConnection.Close()
MessageBox.Show("Done!")
End Sub
End Class
This just so happens to be my first 2008 program to leave my pc. I know
in order for my 2003 program to run on other pcs I had to go into .net
wizards and set local intranet to fulltrust. In 2005 I had to do caspol
-m -cg 1.2 fulltrust. I'm wondering if this problem is because I have
to do something for 2008 it has something to do with is the first.
What's going on?
set a flag in an old foxpro table. I compile it and put the exe on a
network drive. I made an icon on my desktop and ran the program and it
works. I then put the icon on another pc and tried to run the program
and I got:
Unhandled exception has occurred in your application. If you click....
ERROR [IM001][Microsoft][ODBC Driver Manager] Driver does not support
this function
Here is my code:
Imports System.Data.OleDb
Imports System.Data.Odbc
Public Class Form1
Dim myOdbcConnection As New OdbcConnection
Dim myOdbcCommand As New OdbcCommand
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
myOdbcConnection.ConnectionString = "Driver={Microsoft Visual
FoxPro
Driver};SourceType=DBF;SourceDB=c:\;Exclusive=No;Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO;"
myOdbcCommand.Connection = myOdbcConnection
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
myOdbcCommand.CommandText = "update i:\webvalidate\systemcfg
set Flag = '0'"
myOdbcConnection.Open()
myOdbcCommand.ExecuteNonQuery()
myOdbcConnection.Close()
MessageBox.Show("Done!")
End Sub
End Class
This just so happens to be my first 2008 program to leave my pc. I know
in order for my 2003 program to run on other pcs I had to go into .net
wizards and set local intranet to fulltrust. In 2005 I had to do caspol
-m -cg 1.2 fulltrust. I'm wondering if this problem is because I have
to do something for 2008 it has something to do with is the first.
What's going on?