Ok, I am loading data to a form from an AccessDB via ADODB. While I am only displaying the first record, I want to populate a couple of Combo boxs also.However this is causing duplicate entries in my Combo boxes, if there is more than one "Ann" in the database. Will have have to open a separate DISTINCT recordset to populate the combo boxes, or can I just check if "Ann" is already in the Combo?Code:rsTable.Open "SELECT * FROM Table ORDER BY ID", CN,adOpenForwardOnly, adLockReadOnly txtID = rsTable!ID txtText1 = rsTable!Text1 etc Do While Not rsTable.EOF cboFName = rsTable!FName cboSurname = rsTable!Surname etc rsTable.MoveNext Loop
Thanks in advance




Reply With Quote