Help.Trying to adapt Northwind Phone List

J

JoanOC

I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
M

M.L. Sco Scofield

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com
 
J

JoanOC

Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

M.L. Sco Scofield said:
1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

JoanOC

I did as you said, but I must be missing something because I still get the
error message "The object doesn't contain the Automation object 'Filters'.
You tried to run a Visual Basic to set a property or method available for
Automation operations.
Check the component's documentation for info on the properties and methods
it makes available for Automation operations.
How does one do the last sentence?


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

M.L. Sco Scofield said:
1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
M

M.L. Sco Scofield

The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

M.L. Sco Scofield said:
1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
M

M.L. Sco Scofield

Joan,

You've just hit one of the many, many error messages that have nothing to do
with the real problem.

As I mentioned in my last message that you didn't see before posting this,
the sample in Northwind does work.

I assure you that the problem is with something that you renamed or possibly
something that you didn't rename that should have been.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
I did as you said, but I must be missing something because I still get the
error message "The object doesn't contain the Automation object 'Filters'.
You tried to run a Visual Basic to set a property or method available for
Automation operations.
Check the component's documentation for info on the properties and methods
it makes available for Automation operations.
How does one do the last sentence?


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

M.L. Sco Scofield said:
1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

Jeff Conrad

Hi Joan,

I'm certainly no macro expert, but I actually have played
around with that particular macro before. I used the same
setup for a Vendor Phone List form for a client application
and everything worked just fine. It definitely sounds like you
missed a step or two modifying the appropriate elements for
your database.

If you're interested, I would be happy to take a look and see
if I can get the form working for you (no charge of course).
I would need you to export out the macro, the form, and the
tables(s) necessary to make this work into a new database
container. If the form uses a query as a RecordSource, please
include the query as well. If the data is sensitive you can just
export out the table structure and I'll fill in some dummy records
for testing. Also, if you are using Access 2002 or 2003 could
you convert the test database to 2000 format for me?
While I do have access to the other versions, it would require
a little more setup time for me. Zip the file and send it to the
following address:
administrator
at
ernstbros
dot
com
Please note that this is a "dump" account for our office and receives
hundreds of junk messages every day. In order for me to spot
the file amongst all the junk, please put "Access Junkie" in the
Subject line.

--
Jeff Conrad
Access Junkie
Bend, Oregon

I did as you said, but I must be missing something because I still get the
error message "The object doesn't contain the Automation object 'Filters'.
You tried to run a Visual Basic to set a property or method available for
Automation operations.
Check the component's documentation for info on the properties and methods
it makes available for Automation operations.
How does one do the last sentence?


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

M.L. Sco Scofield said:
1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

JoanOC

Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

M.L. Sco Scofield said:
The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

M.L. Sco Scofield said:
1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
M

M.L. Sco Scofield

What a guy, Grasshopper! :)

Check her last post. She got it!

You want to take her next question?

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


Jeff Conrad said:
Hi Joan,

I'm certainly no macro expert, but I actually have played
around with that particular macro before. I used the same
setup for a Vendor Phone List form for a client application
and everything worked just fine. It definitely sounds like you
missed a step or two modifying the appropriate elements for
your database.

If you're interested, I would be happy to take a look and see
if I can get the form working for you (no charge of course).
I would need you to export out the macro, the form, and the
tables(s) necessary to make this work into a new database
container. If the form uses a query as a RecordSource, please
include the query as well. If the data is sensitive you can just
export out the table structure and I'll fill in some dummy records
for testing. Also, if you are using Access 2002 or 2003 could
you convert the test database to 2000 format for me?
While I do have access to the other versions, it would require
a little more setup time for me. Zip the file and send it to the
following address:
administrator
at
ernstbros
dot
com
Please note that this is a "dump" account for our office and receives
hundreds of junk messages every day. In order for me to spot
the file amongst all the junk, please put "Access Junkie" in the
Subject line.

--
Jeff Conrad
Access Junkie
Bend, Oregon

I did as you said, but I must be missing something because I still get the
error message "The object doesn't contain the Automation object 'Filters'.
You tried to run a Visual Basic to set a property or method available for
Automation operations.
Check the component's documentation for info on the properties and methods
it makes available for Automation operations.
How does one do the last sentence?


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
M

M.L. Sco Scofield

To add a "Filter by Contact Title" feature to the Northwind phone form:

Make a query based on the Customers table. Bring down the ContactTitle field
and sort it Ascending. Set the query Unique Values property to Yes.

Add a combo box using the wizard. Keep the first option default. Select the
query you just made. Select the one and only field. No need to sort as it
already is in the query. Select "Remember the value" option.

After the wizard is finished, rename the combo box to
"cboFilterByContactTitle".

Put this code in the combo box's AfterUpdate event:

Me.Filter = "[ContactTitle] = """ & cboFilterByContactTitle & """"
Me.FilterOn = True
CompanyNameFilters = 0
cboFilterByContactTitle = ""

After you get it working, then try to do the same thing with your form.

Because you most likely have the attorneys in a separate table with some
kind of id field, (the contact types were not in a separate table in
Northwind,) I'd make the combo box two columns with the first one the id and
hidden.

See how far you can get. If you need more help, you know where we are.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

M.L. Sco Scofield said:
The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your
post
you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group
frame
on
the form. Did you do that and not mention it or did you not do it?
In
case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it
in
the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

Jeff Conrad

Hi Joan,

Glad to hear you have the form working OK now.

Sco has provided an excellent working example which
should help with your follow-up question.

I *think* I see where you are going with your second
question. I used the Alpha Button setup in a couple of
different places based on the need. For the Vendor list
form I have a command button on each line of the continuous
form that will open up a "Vendor Detail" form. This
detail form displays all the information for that specific
vendor. The Phone List form serves as a great search form
for all the vendors and the user can quickly drill down to the one
they want and then click to view additional details. For
your setup, you could create a new form-subform based
on the attorneys. The subform would list all of that attorney's
clients. The phone list Alpha form would display all of the
attorneys so the user could quickly drill to the one they want.
The user then clicks on a command button in the detail section
that will open the new form-subform to display that attorney's
clients and workload. Follow me? Perhaps this is how you
could set up your forms.

In another situation I used the Alpha button forms for a list
of food products. The food product list could be huge so I
added additional sorting/filtering capabilities. The Header
section has a Primary sort Option Group for Active/Inactive/All
products and a Secondary sort Option Group for Report
Group or Inventory Location. The Secondary sort is optional
so the user selects their criteria and gets a smaller list. At ANY
time the user can click the Alpha buttons for further filtering.
So a user could, with just a couple of mouse clicks, drill down
to all the active products in the Freezer and then beginning with
the letter "B". This was accomplished by using code to change
the RecordSource of the form by the Option Group selections.
Since the Alpha buttons simply filter the existing RecordSource,
they can be used at any time along with whatever other options
the user selected. It works very well, however, this level of
complexity may not be what you are after. This setup requires
LOTS of coding, sleepless nights, and monitor head-whacking!

Post back if you are still having difficulty.

--
Jeff Conrad
Access Junkie
Bend, Oregon

Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

M.L. Sco Scofield said:
The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


JoanOC said:
Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame on
the form. Did you do that and not mention it or did you not do it? In case
you didn't realize it, "CompanyNameFilters" in the macro condition column is
a reference to the option group frame on the form. If you change it in the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices" database.
They use spaces in names extensively throughout the database. Good naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

JoanOC

Before I attempt to implement the excellent suggestions by Sco and you about
filtering the phone list, I need to know how to code the list so when it is
opened without any filter it is in alphabetical order.

In the meantime, I will work on the Filter by Contact as suggested.
Thanks a lot for your help. It is so satisfying when something works!
Joan

Jeff Conrad said:
Hi Joan,

Glad to hear you have the form working OK now.

Sco has provided an excellent working example which
should help with your follow-up question.

I *think* I see where you are going with your second
question. I used the Alpha Button setup in a couple of
different places based on the need. For the Vendor list
form I have a command button on each line of the continuous
form that will open up a "Vendor Detail" form. This
detail form displays all the information for that specific
vendor. The Phone List form serves as a great search form
for all the vendors and the user can quickly drill down to the one
they want and then click to view additional details. For
your setup, you could create a new form-subform based
on the attorneys. The subform would list all of that attorney's
clients. The phone list Alpha form would display all of the
attorneys so the user could quickly drill to the one they want.
The user then clicks on a command button in the detail section
that will open the new form-subform to display that attorney's
clients and workload. Follow me? Perhaps this is how you
could set up your forms.

In another situation I used the Alpha button forms for a list
of food products. The food product list could be huge so I
added additional sorting/filtering capabilities. The Header
section has a Primary sort Option Group for Active/Inactive/All
products and a Secondary sort Option Group for Report
Group or Inventory Location. The Secondary sort is optional
so the user selects their criteria and gets a smaller list. At ANY
time the user can click the Alpha buttons for further filtering.
So a user could, with just a couple of mouse clicks, drill down
to all the active products in the Freezer and then beginning with
the letter "B". This was accomplished by using code to change
the RecordSource of the form by the Option Group selections.
Since the Alpha buttons simply filter the existing RecordSource,
they can be used at any time along with whatever other options
the user selected. It works very well, however, this level of
complexity may not be what you are after. This setup requires
LOTS of coding, sleepless nights, and monitor head-whacking!

Post back if you are still having difficulty.

--
Jeff Conrad
Access Junkie
Bend, Oregon

Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

M.L. Sco Scofield said:
The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post
you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your
posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame
on
the form. Did you do that and not mention it or did you not do it? In
case
you didn't realize it, "CompanyNameFilters" in the macro condition
column is
a reference to the option group frame on the form. If you change it in
the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices"
database.
They use spaces in names extensively throughout the database. Good
naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

Jeff Conrad

Hi Joan,

From your description it sounds like your form is based directly on the
table itself. What you should do is create a saved query with the fields
from the table you would like to see on the form. Then use the Sort
options in the query to sort the attorneys in alphabetical order.

Here is an example using the Northwind form.

1. Open the Northwind database

2. Create a new query and switch to the SQL view

3. Copy and paste this text into the SQL editor:

SELECT Customers.CompanyName, Customers.ContactName,
Customers.Phone, Customers.Fax
FROM Customers
ORDER BY Customers.CompanyName;

4. Now switch to Design View to see how the Sort option on
the CompanyName field is applied

5. Save the query with a name of qryCustomerList

6. Open the Customer Phone List form in Design View

7. Go to the Form's Properties list and on the 'Data' or 'All' tabs
look for the option called Record Source. Right now it should
say Customers which means the form is bound directly to the table.
From the drop down list of tables and queries on this line select
the query we just created - qryCustomerList

8. Save the form changes and then take a look.

Well, you actually won't see much of a difference because the
entries in the table just 'happen' to be in alphabetical order. But,
if they were not, then you would definitely see a difference. The
records in the form will now display in alphabetical order no
matter what Filter is applied. Just apply the same kind of concept
in your database.

--
Jeff Conrad
Access Junkie
Bend, Oregon

Before I attempt to implement the excellent suggestions by Sco and you about
filtering the phone list, I need to know how to code the list so when it is
opened without any filter it is in alphabetical order.

In the meantime, I will work on the Filter by Contact as suggested.
Thanks a lot for your help. It is so satisfying when something works!
Joan

Jeff Conrad said:
Hi Joan,

Glad to hear you have the form working OK now.

Sco has provided an excellent working example which
should help with your follow-up question.

I *think* I see where you are going with your second
question. I used the Alpha Button setup in a couple of
different places based on the need. For the Vendor list
form I have a command button on each line of the continuous
form that will open up a "Vendor Detail" form. This
detail form displays all the information for that specific
vendor. The Phone List form serves as a great search form
for all the vendors and the user can quickly drill down to the one
they want and then click to view additional details. For
your setup, you could create a new form-subform based
on the attorneys. The subform would list all of that attorney's
clients. The phone list Alpha form would display all of the
attorneys so the user could quickly drill to the one they want.
The user then clicks on a command button in the detail section
that will open the new form-subform to display that attorney's
clients and workload. Follow me? Perhaps this is how you
could set up your forms.

In another situation I used the Alpha button forms for a list
of food products. The food product list could be huge so I
added additional sorting/filtering capabilities. The Header
section has a Primary sort Option Group for Active/Inactive/All
products and a Secondary sort Option Group for Report
Group or Inventory Location. The Secondary sort is optional
so the user selects their criteria and gets a smaller list. At ANY
time the user can click the Alpha buttons for further filtering.
So a user could, with just a couple of mouse clicks, drill down
to all the active products in the Freezer and then beginning with
the letter "B". This was accomplished by using code to change
the RecordSource of the form by the Option Group selections.
Since the Alpha buttons simply filter the existing RecordSource,
they can be used at any time along with whatever other options
the user selected. It works very well, however, this level of
complexity may not be what you are after. This setup requires
LOTS of coding, sleepless nights, and monitor head-whacking!

Post back if you are still having difficulty.

--
Jeff Conrad
Access Junkie
Bend, Oregon

Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

:

The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post
you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your
posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame
on
the form. Did you do that and not mention it or did you not do it? In
case
you didn't realize it, "CompanyNameFilters" in the macro condition
column is
a reference to the option group frame on the form. If you change it in
the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices"
database.
They use spaces in names extensively throughout the database. Good
naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

JoanOC

Well, that was easy. It works fine per your instructions. Because I was lazy
and copied an exsiting Client Query, Saved it As:qryPhoneList, when I went
into the SQL I noticed a lot of extra fields listed that I am not using in
the form. I am fearful about deleting those I don't use from the SQL because
everything is working ok.
I will tackle the filtering this weekend.
Thanks for all your help.
Jeff Conrad said:
Hi Joan,

From your description it sounds like your form is based directly on the
table itself. What you should do is create a saved query with the fields
from the table you would like to see on the form. Then use the Sort
options in the query to sort the attorneys in alphabetical order.

Here is an example using the Northwind form.

1. Open the Northwind database

2. Create a new query and switch to the SQL view

3. Copy and paste this text into the SQL editor:

SELECT Customers.CompanyName, Customers.ContactName,
Customers.Phone, Customers.Fax
FROM Customers
ORDER BY Customers.CompanyName;

4. Now switch to Design View to see how the Sort option on
the CompanyName field is applied

5. Save the query with a name of qryCustomerList

6. Open the Customer Phone List form in Design View

7. Go to the Form's Properties list and on the 'Data' or 'All' tabs
look for the option called Record Source. Right now it should
say Customers which means the form is bound directly to the table.
From the drop down list of tables and queries on this line select
the query we just created - qryCustomerList

8. Save the form changes and then take a look.

Well, you actually won't see much of a difference because the
entries in the table just 'happen' to be in alphabetical order. But,
if they were not, then you would definitely see a difference. The
records in the form will now display in alphabetical order no
matter what Filter is applied. Just apply the same kind of concept
in your database.

--
Jeff Conrad
Access Junkie
Bend, Oregon

Before I attempt to implement the excellent suggestions by Sco and you about
filtering the phone list, I need to know how to code the list so when it is
opened without any filter it is in alphabetical order.

In the meantime, I will work on the Filter by Contact as suggested.
Thanks a lot for your help. It is so satisfying when something works!
Joan

Jeff Conrad said:
Hi Joan,

Glad to hear you have the form working OK now.

Sco has provided an excellent working example which
should help with your follow-up question.

I *think* I see where you are going with your second
question. I used the Alpha Button setup in a couple of
different places based on the need. For the Vendor list
form I have a command button on each line of the continuous
form that will open up a "Vendor Detail" form. This
detail form displays all the information for that specific
vendor. The Phone List form serves as a great search form
for all the vendors and the user can quickly drill down to the one
they want and then click to view additional details. For
your setup, you could create a new form-subform based
on the attorneys. The subform would list all of that attorney's
clients. The phone list Alpha form would display all of the
attorneys so the user could quickly drill to the one they want.
The user then clicks on a command button in the detail section
that will open the new form-subform to display that attorney's
clients and workload. Follow me? Perhaps this is how you
could set up your forms.

In another situation I used the Alpha button forms for a list
of food products. The food product list could be huge so I
added additional sorting/filtering capabilities. The Header
section has a Primary sort Option Group for Active/Inactive/All
products and a Secondary sort Option Group for Report
Group or Inventory Location. The Secondary sort is optional
so the user selects their criteria and gets a smaller list. At ANY
time the user can click the Alpha buttons for further filtering.
So a user could, with just a couple of mouse clicks, drill down
to all the active products in the Freezer and then beginning with
the letter "B". This was accomplished by using code to change
the RecordSource of the form by the Option Group selections.
Since the Alpha buttons simply filter the existing RecordSource,
they can be used at any time along with whatever other options
the user selected. It works very well, however, this level of
complexity may not be what you are after. This setup requires
LOTS of coding, sleepless nights, and monitor head-whacking!

Post back if you are still having difficulty.

--
Jeff Conrad
Access Junkie
Bend, Oregon


Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

:

The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post
you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your
posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame
on
the form. Did you do that and not mention it or did you not do it? In
case
you didn't realize it, "CompanyNameFilters" in the macro condition
column is
a reference to the option group frame on the form. If you change it in
the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices"
database.
They use spaces in names extensively throughout the database. Good
naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 
J

Jeff Conrad

Hi Joan,

Glad you have it working OK at this point.
For the query, you really only need to have the
fields that you will be updating/viewing in the form.
No harm, of course, will come from including
additional fields, it is just not needed in this
situation.

You're welcome, no trouble at all.
--
Jeff Conrad
Access Junkie
Bend, Oregon

Well, that was easy. It works fine per your instructions. Because I was lazy
and copied an exsiting Client Query, Saved it As:qryPhoneList, when I went
into the SQL I noticed a lot of extra fields listed that I am not using in
the form. I am fearful about deleting those I don't use from the SQL because
everything is working ok.
I will tackle the filtering this weekend.
Thanks for all your help.
Jeff Conrad said:
Hi Joan,

From your description it sounds like your form is based directly on the
table itself. What you should do is create a saved query with the fields
from the table you would like to see on the form. Then use the Sort
options in the query to sort the attorneys in alphabetical order.

Here is an example using the Northwind form.

1. Open the Northwind database

2. Create a new query and switch to the SQL view

3. Copy and paste this text into the SQL editor:

SELECT Customers.CompanyName, Customers.ContactName,
Customers.Phone, Customers.Fax
FROM Customers
ORDER BY Customers.CompanyName;

4. Now switch to Design View to see how the Sort option on
the CompanyName field is applied

5. Save the query with a name of qryCustomerList

6. Open the Customer Phone List form in Design View

7. Go to the Form's Properties list and on the 'Data' or 'All' tabs
look for the option called Record Source. Right now it should
say Customers which means the form is bound directly to the table.
From the drop down list of tables and queries on this line select
the query we just created - qryCustomerList

8. Save the form changes and then take a look.

Well, you actually won't see much of a difference because the
entries in the table just 'happen' to be in alphabetical order. But,
if they were not, then you would definitely see a difference. The
records in the form will now display in alphabetical order no
matter what Filter is applied. Just apply the same kind of concept
in your database.

--
Jeff Conrad
Access Junkie
Bend, Oregon

Before I attempt to implement the excellent suggestions by Sco and you about
filtering the phone list, I need to know how to code the list so when it is
opened without any filter it is in alphabetical order.

In the meantime, I will work on the Filter by Contact as suggested.
Thanks a lot for your help. It is so satisfying when something works!
Joan

:

Hi Joan,

Glad to hear you have the form working OK now.

Sco has provided an excellent working example which
should help with your follow-up question.

I *think* I see where you are going with your second
question. I used the Alpha Button setup in a couple of
different places based on the need. For the Vendor list
form I have a command button on each line of the continuous
form that will open up a "Vendor Detail" form. This
detail form displays all the information for that specific
vendor. The Phone List form serves as a great search form
for all the vendors and the user can quickly drill down to the one
they want and then click to view additional details. For
your setup, you could create a new form-subform based
on the attorneys. The subform would list all of that attorney's
clients. The phone list Alpha form would display all of the
attorneys so the user could quickly drill to the one they want.
The user then clicks on a command button in the detail section
that will open the new form-subform to display that attorney's
clients and workload. Follow me? Perhaps this is how you
could set up your forms.

In another situation I used the Alpha button forms for a list
of food products. The food product list could be huge so I
added additional sorting/filtering capabilities. The Header
section has a Primary sort Option Group for Active/Inactive/All
products and a Secondary sort Option Group for Report
Group or Inventory Location. The Secondary sort is optional
so the user selects their criteria and gets a smaller list. At ANY
time the user can click the Alpha buttons for further filtering.
So a user could, with just a couple of mouse clicks, drill down
to all the active products in the Freezer and then beginning with
the letter "B". This was accomplished by using code to change
the RecordSource of the form by the Option Group selections.
Since the Alpha buttons simply filter the existing RecordSource,
they can be used at any time along with whatever other options
the user selected. It works very well, however, this level of
complexity may not be what you are after. This setup requires
LOTS of coding, sleepless nights, and monitor head-whacking!

Post back if you are still having difficulty.

--
Jeff Conrad
Access Junkie
Bend, Oregon


Hi. It worked! I deleted the marco and form copied from Northwind and began
from scratch. I was very, very careful per your instructions.
Other: At work I have a command button for each attorney so they may click
on it and all their cases will appear.
Any suggestions of how I could filter the Phone List so they would only have
the phone nos. of their clients? Maybe too many layers.
Thanks for you help. Appreciated.

:

The other option would be to use the wizard and recreate the buttons from
scratch. Then you have the problem of creating the macro (or code) from
scratch as there is no wizard to do that..

As the sample in Northwind does work, the problem lies with your renaming.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


Thanks for input. I did change the field name:[LastName Father] to
[LastnameFather]. That changed the error message to:
'The object doesn't contain the Automaton object 'LastNameFatheFilters'
I will look again to see if I forgot one.
Frustrated. Is there any other place I could get the alpha buttons for a
phone list?Joan

:

1 - Are you sure you changed *all* of the references? There are a bunch.

2 - Are you sure you entered them all the same everywhere? In your post
you
say you changed the reference to the option group frame to [Lastname
Fatherfilters] with a space, but your error message you show is
"LastNameFatherFiters" without a space. Was this error in just your
posting
here or is it actually in your form and/or macro?

You never said you actually changed the name of the option group frame
on
the form. Did you do that and not mention it or did you not do it? In
case
you didn't realize it, "CompanyNameFilters" in the macro condition
column is
a reference to the option group frame on the form. If you change it in
the
macro, it must be changed on the form.

Also, keep in mind that Northwind is not a good "best-practices"
database.
They use spaces in names extensively throughout the database. Good
naming
conventions consider spaces in any names, fields and objects, very evil.

Recheck all of the names for both spelling errors and spaces.

Good luck.

Sco

M.L. "Sco" Scofield, Microsoft Access MVP, MCSD, MCP, MSS, A+
Denver Area Access Users Group Vice President www.DAAUG.org
MS Colorado Events Administrator www.MSColoradoEvents.com
Useful Metric Conversion #18 of 19: 8 nickels = 2 paradigms (My personal
favorite)
Miscellaneous Access and VB "stuff" at www.ScoBiz.com


I copied Nortwind Phone Macro and Phone List.
I replaced the company field with my [Lastname Father] field.
I changed the name of the form and also in macro.
I changed the filters in the macro to [lastname fatherfilters]
Set value:changed to [Lastname Fatherfilters]
ERROR MSG: The object doesn't contain the Automation object
"LastNameFatherFiters."
If I click on the aplha button quickly before the message appears,the
filter
works.
Any help appreciated. Need to do this for work.
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top