nguyenthien0908 > 15-12-10, 12:23 PM
Noname > 15-12-10, 12:47 PM
form!mainform!txttienthua.requery
nguyenthien0908 > 15-12-10, 03:10 PM
(15-12-10, 12:47 PM)Noname Đã viết: Dùng after update là đúng rồi. Nhưng vì từ sub form, nên bạn phải gọi trực tiếp:Mình làm nhưng không được bạn a, nó báo lỗi: Run-time error '2465': Access can't find the field 'frmxuat'
Mã:form!mainform!txttienthua.requery
Thay tên mainform bằng tên bạn đặt cho mainform đó
Noname > 15-12-10, 03:18 PM
nguyenthien0908 > 15-12-10, 03:41 PM
Cafe Via He > 15-12-10, 04:23 PM
Private Sub txtslx_AfterUpdate()
txtttx = txtslx * txtdgx - (txtslx * txtdgx * txttkx) / 100
Me.Requery
End Sub
Private Sub txtdgx_BeforeUpdate(Cancel As Integer)
txtttx = txtslx * txtdgx - (txtslx * txtdgx * txttkx) / 100
Me.Requery
End Sub
nguyenthien0908 > 15-12-10, 04:47 PM
haquocquan > 15-12-10, 05:42 PM
Private Sub txtslx_AfterUpdate()
forms("frmXuat")!txtTienconthieu = forms("frmXuat")!txtTTTSTKX - txtTiendatra
forms("frmXuat").requery
End Sub
Private Sub txtdgx_BeforeUpdate(Cancel As Integer)
forms("frmXuat")!txtTienconthieu = forms("frmXuat")!txtTTTSTKX - txtTiendatra
forms("frmXuat").requery
End Sub
Private Sub txtslx_AfterUpdate()
txtTienconthieu = txtTTTSTKX - txtTiendatra
me.requery
End Sub
kuzinhy > 03-04-20, 10:58 PM
ongke0711 > 03-04-20, 11:41 PM