hi I have to following code to fill in a combobox with the items from a recordset. I want to show the Description and use the iD as an idex for each item.
The folloeing code gives me an error "Invalid Procedure Call or Argument" on the bold line.
If Not rst.EOF And Not rst.BOF Then
rst.MoveFirst
Do Until rst.EOF
With cmbVacType
.AddItem rst("Description", rst("ID"
End With
rst.MoveNext
Loop
End If
any ideas please ?
thanks
The folloeing code gives me an error "Invalid Procedure Call or Argument" on the bold line.
If Not rst.EOF And Not rst.BOF Then
rst.MoveFirst
Do Until rst.EOF
With cmbVacType
.AddItem rst("Description", rst("ID"
End With
rst.MoveNext
Loop
End If
any ideas please ?
thanks