Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[2527] DAO 3.6 Library

Last post 06-12-2008 6:32 PM by BarbStewart. 30 replies.
Page 1 of 3 (31 items) 1 2 3 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2527] DAO 3.6 Library

    This thread is for discussions of DAO 3.6 Library.

    • Post Points: 110
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 06-11-2002 2:57 PM In reply to

    • webjose
    • Top 10 Contributor
    • Joined on 01-02-2002
    • Guru
    • Points 11,015

    Nice, but can be better

    Good explanation, although I must point a few things:

    1.  To delete all records from a database, going 1 by 1 can be a very time-consuming procedure.  Instead, you should consider using a Delete SQL statement.
    2.  The ChangeField function can become repetitive:  What if I have to change several fields.  You could consider using ParamArray for the parameters of the ChangeField function so you can update more than one field at once.
    3.  There is no need (that I know of) to open a table using SQL if you're not using where or order by or that sort of stuff.  You can open the table directly using the table name (query names too) in the call to openrecordset.  Also, you should always specify the cursor type, as some people might expect one type but could get another.  I think the default is snapshot?  Dynaset cursors are best, if you don't have a problem with resources.
    4.  The AddNewrecord function can take a long time to run?
    5.  You use the integer data type for handling ID's, but you should use Long data types because ID's can go beyond 32767, the upper limit of a integer value in VB.
    • Post Points: 0
  • 06-11-2002 5:14 PM In reply to

    • LouisRose
    • Top 75 Contributor
    • Joined on 02-20-2002
    • Fanatic Member
    • Points 1,255
    Thanks webjose... Some very good points. I shall revise this article when I have finished my exams to include your points. Thanks again.
    • Post Points: 0
  • 06-19-2002 12:48 AM In reply to

    I have a problem

    I refresh back that when I delete a recordset in database. if the few row of the data same all GONE.....
    • Post Points: 0
  • 11-09-2002 4:44 AM In reply to

    • fanen
    • Top 50 Contributor
    • Joined on 05-27-2002
    • Guru
    • Points 2,050

    did persuade me

    to start using DAO...i find it better since it allows you the familiar "object-property" programming style.
    • Post Points: 0
  • 12-05-2002 10:33 AM In reply to

    • lammie
    • Not Ranked
    • Joined on 12-05-2002
    • New Member
    • Points 75

    Viewing Records

    What is the code for moving to a record using the ID field.  For example, I was to display information for the record with the ID 3.  What code would move to the record with the ID 3.  I know everything else I need. Thanks.
    • Post Points: 0
  • 12-20-2002 10:41 PM In reply to

    • r00miss
    • Not Ranked
    • Joined on 12-20-2002
    • New Member
    • Points 5

    didn't get how can i view...

    hello!
    I didn't get how can i view information from the database and how can i check it... i mean let's say i have login page, so i write:
    Code:

    if UCase$(txtLogin.text) = LoginInDataBase then ...


    what should i put instead of LoginInDataBase

    PLEASE HELP!!! i gotta hand in my project soon!!!
    • Post Points: 0
  • 12-22-2002 7:50 PM In reply to

    • bruwmac
    • Not Ranked
    • Joined on 12-22-2002
    • New Member
    • Points 35

    Program throws up...

    ...error message. All I get is Error message: *User-defined type not defined* when I try to run this example.   Any thoughts?

    bruwmac
    • Post Points: 0
  • 12-26-2002 8:43 PM In reply to

    • aramsuve
    • Not Ranked
    • Joined on 12-26-2002
    • New Member
    • Points 5

    Add DAO3.6 to Reference

    The functions referenced in the example require the DAO3.6 library. To access this library you need to :

    a. Go to Tools->References in your VB Editor
    b. Locate "Microsoft  DAO 3.6 Object Library" and check the box next to it.

    If you do not find it, you can click the Browse button to search for [C/D/E]:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll.

    • Post Points: 0
  • 12-27-2002 6:47 PM In reply to

    • bruwmac
    • Not Ranked
    • Joined on 12-22-2002
    • New Member
    • Points 35
     Thanks much. Happy New Year.
    • Post Points: 0
  • 01-09-2003 9:32 AM In reply to

    • JH
    • Not Ranked
    • Joined on 01-09-2003
    • New Member
    • Points 10

    One quick question...

    I just started my first database project, and this article helped me understand alot of the basics involved with DB programming.  I would just like to say thanks first.

    Now, to the point.  I am using a Database created in access 2000, with 3 tables.  Whenever the program tries to bind the DB variable to the database, I keep getting an error that says:

    RunTime Error:'3423'

    You cannot use ODBC to import from, export to, or link an external Microsoft Jet or ISAM database table to your database.


    Can you please explain why it's doing this, and what I have to do to fix this?
    • Post Points: 0
  • 01-14-2003 4:30 PM In reply to

    • RMcHugh
    • Not Ranked
    • Joined on 01-14-2003
    • New Member
    • Points 30
    You can access an id field using the data control:
    data1.recordeset.findfirst ("ID=3") assuming ID to be a field in the recordset.
    I would like to know if you can use a variable instead of a value - can't find the correct syntax.
    • Post Points: 0
  • 03-06-2003 9:54 AM In reply to

    create table from vb run time

    i planning to do a database

    actually i found out that this method would be easier but i dont know how to do it!

    this is what i want.
    im developing a user-login-database

    1. when a user logs in.. the tables for his id should be displayed.

    let me make it simple :when a new user is added to the existing table (tblUserList)

    2. another table(tlb*userID*Detail) should be created using the UserId as the table name
      (including the fields like FirstName, MidName,LastName and so on) automaticly when
      the New user id is added to table tblUserList.

    i think i can do the part (1) if you guys can help me with the part (2).
    • Post Points: 0
  • 04-14-2003 1:12 PM In reply to

    • jusani
    • Not Ranked
    • Joined on 04-04-2003
    • New Member
    • Points 10

    database problem

    Id like to help you. I think I could but im to to sure what you mean?
    Do you want A table to be created for each separet user ? If so why and maby I can give you a solution?

    sascha
    • Post Points: 0
  • 04-14-2003 1:18 PM In reply to

    • jusani
    • Not Ranked
    • Joined on 04-04-2003
    • New Member
    • Points 10
    It could be quit a lot of things. First I would check my connection string.
    I wants had some error when working with access. The reason was that the acces database was desighn in a newer ver. then to the one i had on the computer. Im not sure if that will help you?
    To check connection string try using the adodc control to make a connection to your DB if that works copy and past the connection string into your code check if it is the same.

    hope that helps..

    sascha
    • Post Points: 0
Page 1 of 3 (31 items) 1 2 3 Next >