Consulting

Results 1 to 2 of 2

Thread: SQL COMMAND ISSUE

  1. #1
    VBAX Newbie
    Joined
    Sep 2010
    Posts
    1
    Location

    SQL COMMAND ISSUE

    Hi all'
    i joined to your forum,and i hope to help me in my problem:
    i already tested my script to connect DBF by VBA ,if i executedfrom VBA environment ,it works fine. if i executed by macro from access , i got this error :
    run time error 2147467259 (80004005)
    selected collating sequence not supported by OS.
    this my code

    Public Function Delete()

    Dim Conn: Set Conn = CreateObject("ADODB.Connection")
    Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source= E:\company;" & _
    "Extended Properties=""DBASE IV;"";"

    Conn.Execute "DELETE * FROM [employee.DBF] WHERE ID= '01' " & _
    "OR ID= '02';"


    Conn.Close
    End Function

    Any help will be appreciated....

  2. #2
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    You might try 'linking' the dbf to the Access db, then issuing the delete.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •