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 2 of 3 (31 items) < Previous 1 2 3 Next >
Sort Posts: Previous Next
  • 11-25-2003 10:29 AM In reply to

    • yyyg718
    • Not Ranked
    • Joined on 11-25-2003
    • New Member
    • Points 10

    I still get the error

    I did as instructed and Still get the error any sugestions??
    • Post Points: 0
  • 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.

  • 02-23-2004 3:35 PM In reply to

    I think that what he wants is a database with 2 tables: one with user name & one with details... and he wants the details to be automatically entered (by an input of some sort) in both tables correctly, when a new user is added...
    • Post Points: 0
  • 03-17-2004 3:54 AM In reply to

    • njpal
    • Not Ranked
    • Joined on 03-17-2004
    • New Member
    • Points 15
    You can use a variable instead of a value...

    Just declare a variable, say quer as string, and let's say you would like to use the value typed in text box, Text1 and the field name is 'Name'. Use the following:

    quer = "Name" &  "='" & Text1.text & "'"
    data1.recordset.findnext(quer)

    You can also use the LIKE connector as:

    quer = "Name" & " LIKE '" & Text1.text & "*'"
    data1.recordset.findnext(quer)
    • Post Points: 0
  • 03-17-2004 3:29 PM In reply to

    • LouisRose
    • Top 75 Contributor
    • Joined on 02-20-2002
    • Fanatic Member
    • Points 1,255
    Quote:
    You can also use the LIKE connector as:

    quer = "Name" & " LIKE '" & Text1.text & "*'"
    data1.recordset.findnext(quer)


    In fact, you can use any valid SQL syntax. Search this site and you'll come up with at least one good article on SQL. Alternatively, Google for it or get a decent Database book. Any of the following are superb reads...

    An Introduction To Database Systems - CJ Date (Date is the Database Guru).
    Fundamentals Of Database Systems - Elmasri & Navathe
    Database Principles, Programming And Performance -  O'Neil & O'Neil

    • Post Points: 0
  • 03-18-2004 12:35 PM In reply to

    • njpal
    • Not Ranked
    • Joined on 03-17-2004
    • New Member
    • Points 15
    Hi Louis,

    Thanks for informing me about it. But it would be great if you could also provide with an example. I mean where do we write the Select * from... statement, in case I am accessing the database using the Jet engine and searching through the database using the Recordset.FindNext command.

    Regards,
    NJ
    • Post Points: 0
  • 03-19-2004 4:21 AM In reply to

    • LouisRose
    • Top 75 Contributor
    • Joined on 02-20-2002
    • Fanatic Member
    • Points 1,255
    If I remember rightly, the parameter to FindNext should be a string, which takes the form of an SQL predicate (the bit after the WHERE keyword).

    So, the SQL, "SELECT * FROM Animals WHERE Animals.Name = 'Fido'" becomes:

    Code:
    myRecordset.FindNext("Animals.Name = 'Fido'")


    where myRecordset has previously been bound to the Animals table of your database. Using a statement similar to:

    Code:
    Set myRecordset = myDatabaseConnection.OpenRecordset("SELECT * FROM Animals")

    • Post Points: 0
  • 03-19-2004 8:23 AM In reply to

    • njpal
    • Not Ranked
    • Joined on 03-17-2004
    • New Member
    • Points 15
    Thanks for your help. Could you tell me how do I join two tables using recordset.findnext ?

    Regards,
    NJ
    • Post Points: 0
  • 03-20-2004 5:16 AM In reply to

    • LouisRose
    • Top 75 Contributor
    • Joined on 02-20-2002
    • Fanatic Member
    • Points 1,255
    Quote:
    Thanks for your help. Could you tell me how do I join two tables using recordset.findnext ?


    You can't.

    As I said, the string passed to FindNext is the SQL predicate. That's the bit after the WHERE clause. JOIN clauses come before the WHERE clause, so you can't do a JOIN with FindNext.

    Do the JOIN when you open your recordset:

    Code:
    Set myRecordset = myDatabaseConnection.OpenRecordset("SELECT * FROM Animals JOIN People ON Animals.OwnerID = People.ID")


    If you feel you need to brush up on your SQL, there's some good tutorials on the web. James Crowley has one for this very site. And there's a good tutorial  from w3schools.
    • Post Points: 0
  • 05-01-2004 5:24 AM In reply to

    • Bambo
    • Not Ranked
    • Joined on 04-27-2004
    • New Member
    • Points 85

    COMMENDATION


            I really want to commend the effort of the managers of developer fusion, I have really benefitted alot from this site.

            It is only the good Lord that can reward you, please keep up the good work. You won't breakdown but you will breakthrough and break records.

                                                                                              BRAVO.
    • Post Points: 0
  • 06-21-2004 7:52 PM In reply to

    • Nimpo
    • Top 25 Contributor
    • Joined on 03-16-2004
    • United States
    • Guru
    • Points 7,520
    Post the highlighted statement from the debugger

    If you want to know more about me, check out my MySpace.

    Tech & Philosophy - Philosophy in Technology Blog
    Caution, bmp in Road - GDI+ Blog
    • Post Points: 0
  • 06-22-2004 5:47 AM In reply to

    • yyyg718
    • Not Ranked
    • Joined on 11-25-2003
    • New Member
    • Points 10

    Who will answer the call?

    Sorry My response to the issue at hand was overwritten when I pasted the last statement.

    I found it; it was just a typo.

    Who will guard the guards?
    The Special Forces ie. Navy Seals, Rangers, Para-rescue, and the Green Berets.
    You dont mess with them.
    • Post Points: 0
  • 06-22-2004 2:14 PM In reply to

    • bruwmac
    • Not Ranked
    • Joined on 12-22-2002
    • New Member
    • Points 35
    What? Where the heck did that come from?

    • Post Points: 0
  • 07-14-2004 5:05 AM In reply to

    • StevoMc
    • Not Ranked
    • Joined on 07-14-2004
    • New Member
    • Points 5

    Bad Type

    This tutorial has been really good for helping me understand how to use access databases, which is really cool, but unfortunately I'm having a problem.

    When writing the code for moddefaultdatabase I set rstpeople and rstanimals as RecordSet's as shown, but when I come to set them, as show lower down in the example, I can't. The actual problem occurs during run time (error code 13) and I'm told i have a type mismatch.

    I've tried editing out the "set rstpeople ="/"rstanimals =" bits and just left the db.OpenRecordset(strSQL) and the program will compile past this point. I've also put an if staement in that will only run the offending code IF the db is actually an opened database, so I'm pretty certain the database is open to access.

    I just can't set the recordset's to the any tables in the database.

    Any ideas?

    Ste
    • Post Points: 0
  • 07-13-2006 1:39 PM In reply to

    Re: [2527] DAO 3.6 Library

    Dear Sir,

    I want to know How to Open Password  with MsAccess DataBase at Runtime in DAO (Data Acsses Object)

    Please send me kind reply to my E-Mail  (I am wating...)

    My E-mail Address   : nishantha_213@yahoo.com

    Thank you,

    Nishantha.

     

    • Post Points: 5
  • 02-20-2007 5:21 AM In reply to

    Re: [2527] DAO 3.6 Library

    hi sir!

    i hav read your article fully,i also read many articles on vb databases i understand it well yet i hav have a problem if you kindly help me.

    i want to develop a vb application that will takes data as input ,interpret that data and then display that data in complex spreadsheat like Excel. would you kindly till me what i do with it.

    thanks

    Regards  Faisalwadood.      Email id: faisalwadood2002@yahoo.com

    • Post Points: 5
Page 2 of 3 (31 items) < Previous 1 2 3 Next >