F
Frederique
Guest
I'm not an expert on using access and making VB codes, so
I post my question right here.
I've got a database and on a form there should be done
some simple calculations.
there are four textboxes:
1. avarage (imported from a calculation on a subform)
2. minimal (imported from a table)
3. maximal (imported from a table)
4. Status (this should be saved in table X)
the calculation I want to make is (I have written it in my
own stupid abstract language:
if (avarage > minimal and avarage < maximal)
then
status-textbox = "ok"
else "not ok"
So, if 'avaraga' is bigger then 'maximal' and smaller then 'minimal' the textbox Status should say "not ok" else "ok".
How can I write this in a visualbasic code for a event of
the textbox Status? and how can it be saved to the table
where Status is an element of?
By the way, the status should be changed everytime the
textbox Avarage changes first.
I post my question right here.
I've got a database and on a form there should be done
some simple calculations.
there are four textboxes:
1. avarage (imported from a calculation on a subform)
2. minimal (imported from a table)
3. maximal (imported from a table)
4. Status (this should be saved in table X)
the calculation I want to make is (I have written it in my
own stupid abstract language:
if (avarage > minimal and avarage < maximal)
then
status-textbox = "ok"
else "not ok"
So, if 'avaraga' is bigger then 'maximal' and smaller then 'minimal' the textbox Status should say "not ok" else "ok".
How can I write this in a visualbasic code for a event of
the textbox Status? and how can it be saved to the table
where Status is an element of?
By the way, the status should be changed everytime the
textbox Avarage changes first.