+ Reply to Thread
Results 1 to 4 of 4

Thread: Filtering Form Criteria and Searching Main Form

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Filtering Form Criteria and Searching Main Form

    I have a search form (well a criteria based form) which is launched from my main form.

    The search form contains drop down values based on the values in tables. When a user selects on of these values from the dropdown the after_update event kicks in, the main form returns the recordset for the criteria chosen and the search form closes.

    I have seen this in action and know it works however I am having trouble with the code and it is throwing up errors

    Forms!("Form Name").RecordSource = "Select * from [Table] where [Table].[Field Name] like """ & Me!FieldName

    The field I am using contains unique values, the query is looking across two tables but they are joined and give me no trouble anywhere else.

    Any help would be appreciated!

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,161

    Re: Filtering Form Criteria and Searching Main Form

    Here is an alternative solution that you may try.

    http://www.datapigtechnologies.com/f...tomfilter.html

    Alan

  3. #3
    Registered User
    Join Date
    12-20-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Filtering Form Criteria and Searching Main Form

    Quote Originally Posted by alansidman View Post
    Here is an alternative solution that you may try.

    http://www.datapigtechnologies.com/f...tomfilter.html

    Alan
    From the looks of it that may be ideal, I just need to get a set of headphones!!!

    Il let you know how I get on, thanks for the reply

  4. #4
    Registered User
    Join Date
    12-20-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Thumbs up Re: Filtering Form Criteria and Searching Main Form

    Quote Originally Posted by alansidman View Post
    Here is an alternative solution that you may try.

    http://www.datapigtechnologies.com/f...tomfilter.html

    Alan
    That did the job, fantastic! thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0