Subform autonumberID sorting?

H

Harmannus

Hallo,

I have a subform based on a table with autonumberID fields. How can i sort
the entries in this subform automatically based on "name" field from the
table used in this subform.

Explaination:

tblPerson:
PersonID
PersonName

tblActivity
ActivityID
ActivityName

tblActivityPerson
ActivityID
PersonID

frmActivity with subform based on tblActivityPerson

Subform ActivityPerson contains field PersonID

Thanx in advance for any responses!


Greetings,

Harmannus, The Netherlands
 
C

chas

Hi Harmannus,

use a query as the basis of the subform instead of a
table. You can then sort the query on whatever field you
need.

hth

chas
 
H

Harmannus

Hallo,

That will not work in this case as the subform is used for input. Meaning
adding persons to a activity. After adding people i want them sorted
automatically.

Any suggestions?

Regards!
 
R

Rick Brandt

Harmannus said:
Hallo,

That will not work in this case as the subform is used for input. Meaning
adding persons to a activity. After adding people i want them sorted
automatically.

Yes it will. You just need to issue a Requery to the subform after the entries are
made. They should then sort according to the underlying query.
 
H

Harmannus

Thanx for the quick response (-;

How do i accomplish this: vbcode after the before update event? e.g.
me.requiry?!?

Regards!
 

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