click event for vb YesNo button
Hi all
I have create two one table Emp_Mstr there are Name, Pay, Loan another table Emp_Loan like Name,Pay,Loan,Balance and my form is frmEmp it related with my table Emp_Mstr in my form there are txtName, txtPay, txtLoan, txtBalance fields in txtBalance control source =[txtPay]-[txtLoan] Now problems is in my form one command button like cmdPro when I click the button I write the code like below
Private Sub cmdPro_Click()
Dim MPay As Double
Dim MLoan As Double
Mpay=Me.txtPay
MLoan=Me.txtLoan
m = MsgBox("Do you want to process?", vbYesNoâ)
Now I want when I click âyesâ I want to insert into all above another table Emp_Loan
Remaining how should write the code click the yes button
Mohamed Mohiddin
Officer
__________________
Mohamed Mohiddin
Officer
|