Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21

    Default

    mao ni ko code ai....den i dont know pud if sakto bah sad kaha ni ang formula nako sa computation... d jud nako ma save. cge lang error.. basin naa mo mga suggesstions.. all i need is ma save then masakto na ang computation ani.... naa sad ni module.. ok ra ako module... tnx. sa mga mo help og suggestions.. god bless






    option explicit
    dim pay as currency
    dim sss as currency
    dim tax as currency
    dim rate as currency
    dim ot as currency
    dim otrate as currency
    dim deduc as currency
    --------------------------------------------------------------------
    private sub cmdsave_click()
    call settable

    pay = val(txtHWorked.text) * val(txtRPHour.text)
    sss = pay * 0.02
    tax = pay * 0.15
    deduc - val(lblBasicPay.caption) * 0.3
    lblSSS.caption = sss
    lblBasicPay.caption = pay
    lblTax.caption = tax
    lblOTRate.caption = val(lblOTHours.caption) * (txtRPHour.text + (txtRPHour.text / 2))
    lblTotalDeduc.caption = val (lblSSS.caption) + val(lblTax.caption) +val(txtdeduc.text)
    lblNetPay.caption = val(lblBasicPay.caption) + val(lblOTRate.caption) - val(lblTotalDeduc.caption)

    if checkID(txtID.text) then
    msgbox " employee ID is not unique", vbcritical
    elseif txtID.text = "" or txtName.text = "" or txtAddr.text = "" or txtDept.text = "" or txtHWorked.text = "" or txtRPHour.text = "" or txtDeduc.text = "" then
    msgbox "please fill up all fields", vbcritical

    elseif txtHWorked.text > 40 then
    lblOTHours.caption = val(txtHWorked.text) - 40
    else
    rs.addnew

    rs!empID = txtID.text
    rs!empName = txtName.text
    rs!empAddr = txtAddr.text
    rs!empDept = txtDept.text
    rs!empStatusRegProb = optPro.value and optReg.value
    rs!empHWorked = txtHWorked.text
    rs!empRPHour = val(txtRPHour.text)
    rs!empDeduc = val(txtDeduc.text)
    rs!empSSS = val(lblSSS.caption)
    rs!empTax = val(lblTax.caption)
    rs!empBasicPay = val(lblBasicPay.caption)
    rs!empOTHours = val(lblOTHours.caption)
    rs!empOTRate = val(lblOTRate.caption)
    rs!empTotalDeduc = val(lblTOtalDeduc.caption)
    rs!empNetPay = val(lblNetPay.caption)
    rs.update
    msgbox " new record added...",vbinformation
    end if

    end sub

  2. #22

    Default

    deduc - val(lblBasicPay.caption) * 0.3
    -----------------------------------------

    unsay purpose ani nga computation bro? ibutang ni cya ug variable..

    nya unsa man nga error ang makita nimu diay? nag ADO ka? or DAO?

  3. #23

    Default

    Nah. . . .wa jud qy alamag ani ay. . .tahaha. . . .

  4. #24

    Default

    yup bro.. nag DAO nako ani..
    den dinhi na part ai mo ingon mismatch daw . .(lblOTRate.caption = val(lblOTHours.caption) * (txtRPHour.text + (txtRPHour.text / 2)) . . ... . . ..

    uo.. ebutang siya bro...

  5. #25

    Default

    try MR. GOOGLE bro..mau kau to siya...

  6. #26

    Default

    saka ko para nimu kai wala koi idea ani. hehehe

  7. #27

    Default

    Quote Originally Posted by ferdz_willz View Post
    yup bro.. nag DAO nako ani..
    den dinhi na part ai mo ingon mismatch daw . .(lblOTRate.caption = val(lblOTHours.caption) * (txtRPHour.text + (txtRPHour.text / 2)) . . ... . . ..

    uo.. ebutang siya bro...
    tang-tanga ang Val() sa imu lblOTHours.caption

Page 3 of 3 FirstFirst 123

Similar Threads

 
  1. Looking For: kinsay nangita og encoder dha??
    By chicky in forum Jobs
    Replies: 4
    Last Post: 07-11-2011, 09:25 PM
  2. Replies: 19
    Last Post: 09-15-2010, 09:13 AM
  3. Kinsay nakahibaw og derma clinic sa Cebu?
    By anne marie in forum Fitness & Health
    Replies: 7
    Last Post: 07-04-2007, 09:41 PM
  4. kinsay hilig og death dri?
    By dogtik007 in forum Music & Radio
    Replies: 82
    Last Post: 06-05-2006, 10:18 AM
  5. kinsa kamao og dreamweaver?
    By AMD_earl in forum Websites & Multimedia
    Replies: 29
    Last Post: 04-21-2006, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top