Applyfilter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zamir
    New Member
    • Feb 2007
    • 10

    #1

    Applyfilter

    hi, can you applyfilter to a form based on what a user will enter in a login screen and have a specific record show up on that form.

    the code i already have is this:

    DoCmd.ApplyFilt er , "LastName = Me.txtLastName"

    which a 'Enter Parameter Value' shows up to find that record, but i don't want to do that, i want that record to be already on that form.

    thanks
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Hi. You can't include control values inside parenthesis. Try this:
    Code:
    DoCmd.ApplyFilter , "LastName = " & Me.txtLastName.Text

    Comment

    Working...