Results 1 to 3 of 3

Thread: [solved] is that possible to modify access query criteria from access module?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Resolved [solved] is that possible to modify access query criteria from access module?

    hi, like the above subject,
    is that possible to modify the access query criteria from the access module?

    thanks in advance
    Last edited by asmdev; May 19th, 2005 at 01:02 PM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: is that possible to modify access query criteria from access module?

    i found the way already, if you got something different, plez post to share

    VB Code:
    1. Dim dba As DAO.Database
    2.     Dim dbq As DAO.QueryDef
    3.     Set dba = CurrentDb
    4.  
    5.         Set dbq = dba.QueryDefs("Q_FOLLOW_COUPON")
    6.         dbq.SQL = "SELECT * FROM BIODATA WHERE bCouponNo='" & txtSearch2 & "'"
    7.         DoCmd.OpenForm "D_BIODATA"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: is that possible to modify access query criteria from access module?

    well, i just figure out i am so damn stupid...
    if you use the button wizard, it could easily integrate a textbox to match a field inside your table filtering the recordset.

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