Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Nov 2004
    Location
    London, United Kingdom
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts

    determine filter of a form (access 2000)

    i would like to be able to store the sql string for the form that i have open in a variable. i am trying to capture it with:
    varSQL = Me.filter
    however that is not working.
    i was wondering if anyone could help me please.

    many thanks
    amanda

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: determine filter of a form (access 2000)

    The Filter property of a form contains the currently set filter, if any. It will look like this:

    "tblSomething.FieldName=10"

    If no filter has been set, the Filter property will contain the empty string "".

    A form doesn't have an SQL property. Its record source can be
    a) the name of a table, or
    [img]/forums/images/smilies/cool.gif[/img] the name of a query, or
    c) an SQL string.

Posting Permissions

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