Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Going to kill datacombos!!!!!!

Status
Not open for further replies.

slugo

Programmer
Dec 16, 2001
15
US
Hi All,

I'm having some problems with datacombos can you tell? Well here is my problems. First when I try to delete something off the corresponding table. Only the first element in the list drops no matter what. SO for example if I had a list that looked like this:
Bob
Mary
Jane
Elizabeth

I then deleted Mary, Bob would disappear and that is the only that would disappear. Then it also doesn't get rid of the space that the old value held. So in this instance on the top there would always be a space. My second other big problem is that when I add something to the table below it doesn't show up no matter what I do to the datacombo. Here is the code I'm using to do a refresh but it isn't exactly working. I'm running SP5 if that matters to anyone. Thanks in advance.

On Error Resume Next
DataEnvironment1.rsEmployees.Resync adAffectAll
Debug.Print DataEnvironment1.rsEmployees.RecordCount
With cmbEmp
Set .RowSource = DataEnvironment1
.RowMember = "Employees"
.ListField = "UserName"
.BoundText = "UserID"
.ReFill
End With
If Err.Number <> 0 Then
' Do Nothing
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top