|
-
Jun 30th, 2004, 01:41 AM
#1
Thread Starter
Lively Member
Delet a record when item is removed from a list view
Hi There, hope you can help!
In my application I have a listbox listing select criteria with the following code -
(VB Code -
adoExpertise.Open "select * from tblExpertise INNER JOIN tblExpertiseRequirements ON tblExpertise.bytExpertiseCode = tblExpertiseRequirements.bytExpertiseCode where tblexpertiserequirements.lngVacancyID =" & FrmVacancy.txtFields(0).Text, db, adOpenStatic, adLockOptimistic
List2.Clear
Max = adosecondary.RecordCount
adoExpertise.MoveFirst
List2.Clear
For i = 1 To Max
List2.AddItem adosecondary!chrExpertise
adoExpertise.MoveNext
Next i
end code)
My problem is how to delete the selected item from the recordset when the item is removed from the list box by the user - Can anybody hep?
Thanks in advance
- PB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|