National boundaries are not evident when we view the Earth from space. Fanatical ethnic or religious or national chauvinisms are a little difficult to maintain when we see our planet as a fragile blue crescent...
The first option is a hardcoded value. It was used as an example to show you how the Filter works.
The whole thing is wrapped in quotes " ".
DoCmd.ApplyFilter , " FirstName = "" Rost "" "
That means all of it is a one string.
The second option which uses &s has these because you are using the value in the control so it substitutes [FirstNameFilter] with for example "Alex" that you have written in the form.
Private Sub Command8_Click() DoCmd.ApplyFilter , ?FirstName=??? & FirstNameFilter & ???? End Sub
Al
Reply from Richard Rost:
Whoa... somehow your post got garbled. No idea why. Can you repost the last bit of code?
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Search Seminar.