Results 1 to 2 of 2

Thread: Access
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular gheyman's Avatar
    Join Date
    Nov 2005
    Location
    Orlando, FL USA
    Posts
    1,662
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Default Access

    Can you use VBA to Filter a filed in a Query

    I have a Query (qry_OnTimeDelivery_MetricData)

    I want to Filter Field: "MONTH0_Active" to the value "1"

    I want to do this from a form using a Button. Can it be done using code?
    G Heyman
    Northrop Grumman - Laser Systems'
    Apopka, FL

  2. #2
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Posts
    51,032
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    11 Thread(s)

    Default Re: Access

    Yes, you can build the SQL query code via VBA, and apply to an existing query to update it.\
    I have done that a number of times.

    Here are some examples:
    https://www.mrexcel.com/forum/micros...ild+query+form
    https://www.mrexcel.com/forum/micros...ild+query+form
    https://www.mrexcel.com/forum/micros...selection+form
    TIPS FOR FINDING EXCEL SOLUTIONS
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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