That code won't work for adding text to a textbox. It would do ok for a combobox or listbox. If you want specific data I would need to see the SQL string and what data you are looking to parse into the text box.