Automatically setting a value

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

Guest

Good day,

I am currently attempting to set one field's value depending on the value of
another vield.

Ie.

I would like the database to automatically determine how many vacation days
a person has depending on their contract.


15 to 29 days = 1 day vacation
30 to 44 days = 2 day vacation
etc...

it would be nice to have the computer generate this number based upon their
contact length rather then entering it manually.

Many Thanks
 
Good day,
I am currently attempting to set one field's value depending on the value of
another vield.

Ie.

I would like the database to automatically determine how many vacation days
a person has depending on their contract.

15 to 29 days = 1 day vacation
30 to 44 days = 2 day vacation
etc...

it would be nice to have the computer generate this number based upon their
contact length rather then entering it manually.

Many Thanks
some sub you want to trigger_event()
select case 1st_field.value

case between 0 and 14
2nd_field.value = 0
case between 15 and 29
2nd_field.value = 1
case...
case else
msgbox "bad luck", vbokonly, "ooooohhhhh....."

end select
end sub

grtz
 

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