hai,
i got some issue with listbox double click
my code here
when i double click the list box seleted item value with update with data i want.
i got some issue with listbox double click
my code here
Code:
Private Sub listgurufilterips_DblClick(Cancel As Integer)
Dim MyDB As Database, MyTable As Recordset
Dim JWBCONFIRM As String
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Set MyTable = MyDB.OpenRecordset("TGuruIPS", DB_OPEN_TABLE)
MyTable.Index = "noid"
MyTable.Seek "=", Forms![FkemaskiniPG]![listgurufilterips]
JWBCONFIRM = MsgBox("Pasti mahu tukar?", vbYesNo, "SAHKAN TUKAR")
If JWBCONFIRM = vbNo Then
Forms![FkemaskiniPG]![listgurufilterips].SetFocus
SendKeys "{DOWN}"
Exit Sub
Else
With MyTable
.Edit
!KodInstitusi = " "
!JenisInstitusi = " "
!Alamat = " "
!Institusi = " "
!status = "BERHENTI"
.Update
End With
DoCmd.OpenQuery "QListFilterGuru"
Me![listgurufilterips].Requery
Forms![FkemaskiniPG]![listgurufilterips].SetFocus
SendKeys "{DOWN}"
DoCmd.Close
End If
End Sub
when i double click the list box seleted item value with update with data i want.