accending sort in a form

G

Guest

Hello,

I have a table of names, sorted in an accending order.
I have a form for this table, to make it easuer for the
user to add new names.

I want to keep the table sorted, because I have a combo
box in other form of those table, and I want the users to
see the names in an accending order.

How can I keep the table sorted after the user adds a new
name?
 
G

Guest

I wrote this in the "BeforeUpdate" function of the form
and tried also in the field itself, but when running,
there is a run time error - 2115
-----Original Message-----
Requery the form after adding the new record:
Me.Requery

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

Hello,

I have a table of names, sorted in an accending order.
I have a form for this table, to make it easuer for the
user to add new names.

I want to keep the table sorted, because I have a combo
box in other form of those table, and I want the users to
see the names in an accending order.

How can I keep the table sorted after the user adds a new
name?


.
 
R

Rick Brandt

I wrote this in the "BeforeUpdate" function of the form
and tried also in the field itself, but when running,
there is a run time error - 2115

Use AfterUpdate, not BeforeUpdate.
 

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

Similar Threads


Top