Results 1 to 3 of 3

Thread: this is DAO, is that possible to do something like this in ADODB?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    this is DAO, is that possible to do something like this in ADODB?

    VB Code:
    1. Dim qd As DAO.querydef
    2.  
    3. Set qd = CurrentDb.querydefs("yourquerynamehere")
    4. qd.SQL = "selec t* from tblorders where tblorders.orderdate between '" & Me.begindate & "' and '" & Me.enddate & "'"
    5.  
    6. qd.close

    like above code, is that possible to do something like that in ADODB?
    if u felt my post make u happy ,
    then u could make me happy too by rating my post

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: this is DAO, is that possible to do something like this in ADODB?

    almost identical, there are a few differences, connecting to the data base is a bit different, but you can do just about all the same things, just slightly different code

    see this thread for more info

    pete

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: this is DAO, is that possible to do something like this in ADODB?

    oh man, perhaps i have present the problem stupidly

    if u check the code above, the guy is modifying the QUERY which is already inside the MS ACCESS QUERY.

    he picks the QUERY and modify the QUERY SQL statement,
    so, how could i do something like this inside ADODB?
    if u felt my post make u happy ,
    then u could make me happy too by rating my post

Posting Permissions

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



Click Here to Expand Forum to Full Width