Re: Win2K3 and the OleDb 8.0 driver

From: Michael Drozdov (vfpdev_at_narod.ru)
Date: 08/20/04

  • Next message: Andy Rice: "Re: dBase 5.7 tables in dbc"
    Date: Sat, 21 Aug 2004 04:16:31 +0600
    
    

    Hi, Scott!

    > Code:
    > Dim tVFPConnstr As String
    > Dim cVFPConn As OleDbConnection
    >
    >
    > tVFPConnstr = "Provider=VFPOLEDB;Data
    > Source=p:\csiwin\data\hr180.dbf;SourceType=DBF;UID=;PWD=;Exclusive=No"
    >
    > cVFPConn = New OleDbConnection(tVFPConnstr)
    >
    > cVFPConn.Open() -> ERRORS ON THIS LINE

    > returns the error: "Referenced object has a value of 'Nothing'"

    Hm... I am not the "jewelry programmer" in VB.NET :-) ...and I am not
    sure... but
    try to use code, something similarly to following:
    ...
    Dim cVFPConn As New OleDbConnection()
    Conn.ConnectionString = tVFPConnstr
    cVFPConn.Open()
    ...
    Best regards.
    Michael Drozdov, ICS Soft, Perm, Russia
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    My Page: http://vfpdev.narod.ru/
    ICS Page: http://www.ics.perm.ru/ [on Russian]
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  • Next message: Andy Rice: "Re: dBase 5.7 tables in dbc"