> Parameters are really not a very good interface. You have just given one
> example of where they are too frustrating.
>
> A better approach might be to add an unbound text box to your form (e.g. in
> the Form Header), and use its AfterUpdate event procedure to apply a filter
> to the form. This will avoid the parameter re-request problem.
>
> You may also need to set:
> Me.OrderByOn = True
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users -
http://allenbrowne.com/tips.html> Reply to group, rather than allenbrowne at mvps dot org.
>
> "channell" <channell[ at ]discussions.microsoft.com> wrote in message
> news:9BF1742E-02CA-4C1F-B2B4-871BD6B1A5DA[ at ]microsoft.com...
> >I have the following code for my label to sort:
> >
> > Private Sub txtLabel124_Click()
> > If Me.OrderBy = "[LastNameFirstName]" Then
> > Me.OrderBy = "[LastNameFirstName] DESC"
> > Else
> > Me.OrderBy = "[LastNameFirstName]"
> > End If
> > End Sub
> >
> > The code works just fine, but here is my problem:
> >
> > The Form which contains this code is based on a Query which requires
> > certain
> > criteria (Parameter Query). When I click the label to sort the
> > information
> > present, the Parameter Box reappears asking me to put in the date. When I
> > do, it sorts it like it should. I need to know if there is a way to
> > bypass
> > re-entering the same data (Date) in the parameter box. Thank you very
> > much
> > in advance!
>
>