FIlters and Grouping

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

Is it possible to group records when using filters on a table. Personnel
are orgainsed at work by position numbers. Sub departments are annoted with
a letter eg 001A, 001D.

I can filter using expressions - Like "*D" to group all D's together. What
we would like to be able to do is to display all records by department. eg
all a's, d's etc. We do it for reports but would like to be able to do it
for tables,

Thanking you,
Rob
 
Rob, any chance of making the departmental suffix into a separate field?

One of the basic rules of data normalization is to make the fields atomic,
i.e. store only one thing in any field. You can still print the 2 fields as
one on a report, but you can much more easily and efficiently filter the
data if it is stored in separate fields.
 
You can create a Query with a Calculated Field that only has the Department
Code and then sort the Rows by this calculated Field.

OTOH, you are storing 2 items of data (PositionNo and DepartmentCode) in one
Field value. This violates the First Normal Form of Database Normalisation
which requires each Field value to be atomic, meaning containing only one
item of data.

If you are not too far into the database development cycle, it may be better
to normalise your database now before proceeding further.
 
Rob said:
Hi all,

Is it possible to group records when using filters on a table.
Personnel are orgainsed at work by position numbers. Sub departments
are annoted with a letter eg 001A, 001D.

As noted, the sub department should be indicated in a second field.
I can filter using expressions - Like "*D" to group all D's together.
What we would like to be able to do is to display all records by
department. eg all a's, d's etc. We do it for reports but would like
to be able to do it for tables,

You don't do anything with a table except store data there. You don't
sort them view them edit in them etc. You just define the fields and store
the data. Use queries forms and reports to do all the rest.
 
Hi all,

Unfortunatley I cannot normalise the database as I am working with an
existing product developed by somebody else (this is not the only example of
poor normalisation in this db).

Thanks for all your responses!

Cheers
 
Rob said:
Hi all,

Unfortunatley I cannot normalise the database as I am working with an
existing product developed by somebody else (this is not the only
example of poor normalisation in this db).

Thanks for all your responses!

Do you mean they still control the database?

Poor normalization is only going to cause a lot of frustration as time
goes on. I know from personal experience, putting it off only makes it
harder.
 

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

Back
Top