Using a single control to enter data in multiple fields

W

Wayne Morgan

Change the Control Source of the control when you change the subject level. You may want
to do this in the form's OnCurrent event and, if you change the subject level, in the
AfterUpdate event of the control that displays the subject level.

What you may find easier is to store the number as text in the same field. When you create
your average, you could filter out the non-numeric values and average what's left.
 
G

Guy Lafontaine

Hi everyone,

I am currently creating a database that generates a student's progress
report. Subjects fall into two categories: level one subjects require text
marks (A,B,C) while level two subjects require numberic marks (1,2,3,4,5) .
In my table, level one and two marks are stored in two different fields
since one is text field and the other one is numeric (I need to generate
average). My table is made of Subject field, Level field, Level one and
Level two marks.

On a form, how can I enter any mark in a single control that will store that
mark in the right field based on the subject's level ?

Thank you.

Guy
 

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