Community discussion forum

ADO Data Control

This is a comment thread discussing ADO Data Control
  • 10 years ago

    This thread is for discussions of ADO Data Control.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 6 years ago

    IMHO - The Data Control's sole usefullnes is when you literally want to scroll the data, one record at a time.javascript:smilie('')
    frown


    I find it MUCH easier to roll my own ADO RS control that will search for the resocrd(s) I need...javascript:smilie('')
    stick out tongue javascript:smilie('')
    wink


    This control should ONLY be used by total DB Newbies!!! (IMHO)javascript:smilie('')
    eek!

  • 5 years ago

    Gave me insight, thanks

  • 4 years ago

    i'm using adodc to connect to access
    but i'm having problem when i use the application on other pc...
    it say that it cant found the database file...


    i use this coding... but still the error is there...


    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = App.Path + "db1.mdb"
    dcPekerja.RecordSource = "Select * from Table1;"
    End Sub


    i also try this code...but nothing happens...
    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = App.Path & "db1.mdb"
    dcPekerja.RecordSource = "Select * from Table1;"
    End Sub


    dcPekerja => adodc

  • 4 years ago

    Well i supose you do have the database in the same directory with the application on the other computer

  • 4 years ago

    Or not

  • 3 years ago

    Hi there... I went though your code and fond one mistake...


    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = App.Path + "db1.mdb"
    dcPekerja.RecordSource = "Select * from Table1;"
    End Sub


    You Should Have


    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = "\db1.mdb"
    dcPekerja.RecordSource = "Select * From Table1;"
    End Sub

  • 3 years ago

    Well I think the code should look like:
    Private Sub Form_Load()
    dcPekerja.Visible = False
    dcPekerja.ConnectionString = App.Path & "\db1.mdb"
    dcPekerja.RecordSource = "Select * From Table1;"
    End Sub


    All you have to add is a tiny little "\" and there you have it. I suppose that you already figured it out by now but if not hope it helps. Also make sure that the database is in the same directory as the ".exe" or ".vbp"


    Have fun coding!

Post a reply

Enter your message below

Sign in or Join us (it's free).