G
Guest
Hi,
I've a delete button and with the following code on the Click property:
Dim strSQL As String
strSQL = Delete From tblPatient PatientNameID = " & Forms!MainForm!Combo0 &""
CurrentDb.Execute strSQL, dbFailOnError
Me.Combo2.Requery
Everything is function well, but when the name of the patient in the combo
is deleted, the name remains, but is not almost selectable and only when I
close my database and I reopen it, the name is cancelled.
I would like that when I click on the button, the name is cancelles directly
from the list and not only after relaunch the database.
Any idea?
Thanks
Bernd
I've a delete button and with the following code on the Click property:
Dim strSQL As String
strSQL = Delete From tblPatient PatientNameID = " & Forms!MainForm!Combo0 &""
CurrentDb.Execute strSQL, dbFailOnError
Me.Combo2.Requery
Everything is function well, but when the name of the patient in the combo
is deleted, the name remains, but is not almost selectable and only when I
close my database and I reopen it, the name is cancelled.
I would like that when I click on the button, the name is cancelles directly
from the list and not only after relaunch the database.
Any idea?
Thanks
Bernd