gknierim
February 5th, 2000, 10:43 AM
I am using a ADO recordset. I have a few questions.
1) I am currently using a regular combobox instead of the DBCombo box. What is the main difference between these two and which one should I be using?
2) How do I refresh the contents of a combolist if I delete a record from the recordset? I have tried .Refresh, .Update, and .Resync and nothing seems to work. I also read that the .Resync will only work if the form is a MDI child. My form is not a child and I don't want it to be a child. Here is my existing code so far when the user deletes a record from the recordset:\
Dim Response
Response = MsgBox("Are you sure you want to delete " & cboList1.Text & "?", vbQuestion + vbYesNo, "Delete driver")
If Response = vbYes then
With datPrimaryRS.Recordset
.Delete
.Update
.MoveNext
If .EOF then .MoveLast
End With
Exit Sub
End If
Do I really need the .Update also?
Any help would be greatly appreciated!!
Thanks,
Greg
1) I am currently using a regular combobox instead of the DBCombo box. What is the main difference between these two and which one should I be using?
2) How do I refresh the contents of a combolist if I delete a record from the recordset? I have tried .Refresh, .Update, and .Resync and nothing seems to work. I also read that the .Resync will only work if the form is a MDI child. My form is not a child and I don't want it to be a child. Here is my existing code so far when the user deletes a record from the recordset:\
Dim Response
Response = MsgBox("Are you sure you want to delete " & cboList1.Text & "?", vbQuestion + vbYesNo, "Delete driver")
If Response = vbYes then
With datPrimaryRS.Recordset
.Delete
.Update
.MoveNext
If .EOF then .MoveLast
End With
Exit Sub
End If
Do I really need the .Update also?
Any help would be greatly appreciated!!
Thanks,
Greg