In the NW example, the condition field is
[CompanyNameFilters]=1, etc. Since I want the macro to
filter on employees' last names, I entered
[LastNameFilter]=1, and so forth, as the condition.
In the Action Arguments section, I entered
[LastNameFilter] Like "A*" as the Where Condition.
I somehow thought that the macro would know to use the
LastName field as the source, but I see now that I need a
filter named "LastNameFilter." I searched Help and went
back to NW to find out how to create a named filter, but
with no success. I understand how to filter data, but
it's creating an object named LastNameFilter that I don't
get. Thanks for your quick reply and your assistance!
-----Original Message-----
You have something on your form named "LastNameFilter",
or you have that
word somewhere in your macro. What is it? Why are you
referring to it?
--
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.
message
Thanks, Allen. I followed the Northwind pattern to
create a macro named Alpha Buttons; the filter is
LastNameFilter. Next I created an option group in the
form and put the macro in the AfterUpdate field of the
option group properties. I then set about to create
the
toggle buttons--starting with A and B and testing them
out. Clicking the button produced the following
message:
_____________________
The object doesn't contain the Automation
object "LastNameFilter."
You tried to run a VB procedure to set a property or
method for an object. However, the component doesn't
make the property available for Automation operations.
Check the component's documentation for information on
the properties and methods it makes available for
Automation operations.
_______________________
I tried using the wizard to create the option group,
but
it only allowed 20 entries.
Where'd I go wrong? Thanks much!!!
Jaycee
-----Original Message-----
It was probably the Customer Phone List form in the
Northwind sample
database.
These are toggle buttons in an option group.
The AfterUpdate event of the group calls the macro:
Customer Phone List.Alpha Buttons
The maco uses the ApplyFilter action to filter the
form.
Hopefully that's enough for you to see how it works,
and
copy the strategy.
--
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.
Recently I saw a form in a sample database that had
buttons across the bottom, one for each letter of
the
alphabet. I assume that clicking on "C" jumped to
the
first record where the Last Name, for instance,
began
with "C."
Can anyone tell me how to create these buttons? I
made a
couple of attempts at figuring it out, but without
success.
If the process is complex, please be specific. I've
had
no training in SQL/VB.
Thanks!