CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Interesting question!!!

Print topic Send  topic

Author Message
Paul
Posted: 02/25/2002, 6:11 AM

I have an admin form that allows users to enter a new job vacancy, this form includes a checkbox that gives the option 1=perm job 0=temp job

If the job is "perm" then the user must enter a "per annum" - fldsalary
If the job is "temp" then the user must enter a "per hour/day" - fldpay_rate

What i would like is for the "pay_rate" text field is available to enter into and the salary text field isn't, but if they then check the temp/perm checkbox (i.e. make vacancy a "perm") then the "salary" field becomes available and the "pay_rate" field becomes in-active....

I really need help with this.... thanks in advance

Paul
Ken Hardwick
Posted: 02/25/2002, 7:06 AM

I would suggest another form field where they would
indicate the rate of pay for the person.
Then in the before insert event and the before update event.
check the value in the job type..then populate the correct
payfield.

fldPayField is new field on form but not a field in table

if fldJobType = 1 then
'for perm job
fldSalary = fldPayField
fldPayRate = ""
else
'for temp
fldPayRate = fldPayField
fldSalary = ""
end if


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.