Results 1 to 8 of 8
  1. #1
    BernardKane is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Jun 2006
    Location
    Lincolnshire
    Posts
    12

    Creating User friendly Search Forms

    I am using Acess 2010 (beta). I have a form with a sub form. The idea is that the user should enter a search criteria in a text box in the main form and all related records are then shown in a datasheet in the subform. I don't want to use the MS standard search wizzard as I want to limit the number of search fields and also make it easy for the user. Can anyone point me to a video tutorial for this or guide me on how to do this. I have looked at other similar questions asked before but none really answer my question.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Modify the subform recordsource query criteria or set the subform Filter & FilterON properties appropriately.

  3. #3
    BernardKane is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Jun 2006
    Location
    Lincolnshire
    Posts
    12

    Search Forms

    Thanks for the advice I will try it but I have coded now in VBA.

  4. #4
    sesproul is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    50

    Question about the Filter

    What us the action of the Filter, and Filteron Properties?

    Steve

  5. #5
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    The form Filter property is used as criteria for the forms recordsource, e.g. "ID=1"

    The form FiiterOn property, if True, applies the Filter to the form recordsource, and if False, prevents the Filter from being applied.

    In constructing a filter property,
    (1) text data is enclosed with tic marks, e.g.
    me.filter="FieldClientName='" & me.FieldClientName & "'" or
    me.filter="FieldClientName='" & "Jones" & "'" or
    me.filter="FieldClientNam<>'" & "Jones" & "'"
    (2) date data is enclosed with #, e.g.
    me.filter="FieldDate=#" & cdate(me.FieldDateFilter) & "#" or
    me.filter="FieldDate=>" & cdate(me.FieldDateFilter) & "#" or
    me.filter="FieldDate=<" & cdate(me.FieldDateFilter) & "#" or
    me.filter="FieldDate=<>" & cdate(me.FieldDateFilter) & "#"
    [Use the cdate function on date fields.]
    (3) Numeric data is not enclosed, e.g.
    me.filter="FieldCount=" & 3 or
    me.filter="FieldCount>" & 3 or
    me.filter="FieldCount<" & 3 or
    me.filter="FieldCount<>" & 3

    each is then followed with FilterOn = True or False, as the case may be.

  6. #6
    sesproul is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    50

    What about recordsource

    So this is basically adding a temporary "WHERE ..." statement to the end of the recordsource query?


    Steve

  7. #7
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Yes it is, but without the "WHERE "

  8. #8
    sesproul is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    50
    thanks - this ACCESS interface is beginning to make sense.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-14-2010, 08:32 AM
  2. Creating input forms for queries?
    By Brujeria5 in forum Queries
    Replies: 1
    Last Post: 08-14-2009, 08:48 AM
  3. Replies: 5
    Last Post: 07-26-2009, 12:13 PM
  4. Creating professional looking forms.
    By Rameez in forum Forms
    Replies: 6
    Last Post: 06-19-2009, 03:56 AM
  5. Help!!! user friendly forms/date entry
    By megank in forum Access
    Replies: 3
    Last Post: 03-31-2009, 09:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums