Tom Findlay
Jan 4th, 2000, 08:28 PM
Hello,
I have a DataCombo box on a form which is retrieving it's items from a Command in my DataEnvironment. The data I am working with on the form is from a recordset I have created programatically using OpenDatabase and OpenRecordset with a SELECT. When adding a record I use the .AddNew and .Update methods on the recordset. My problem is I can not get the DataCombo box to display the updated information after an add or an edit. I have tried a .Requery on the Command in the DataEnvironment, I have tried a .Requery and a .Move(0) on the recordset I am using, I have tried a .ReFill and a .Refresh on the DataCombo box. I have also tried using an Adodc control as the DataSource for the DataCombo box and refreshing that but that did not work either and I would prefer not to have to use an Adodc control. So, fundamentally, I think I need to update the Command in the DataEnvironment which I presume will update the DataCombo. Any suggestions greatfully received.
Thanks in advance.
Tom
I have a DataCombo box on a form which is retrieving it's items from a Command in my DataEnvironment. The data I am working with on the form is from a recordset I have created programatically using OpenDatabase and OpenRecordset with a SELECT. When adding a record I use the .AddNew and .Update methods on the recordset. My problem is I can not get the DataCombo box to display the updated information after an add or an edit. I have tried a .Requery on the Command in the DataEnvironment, I have tried a .Requery and a .Move(0) on the recordset I am using, I have tried a .ReFill and a .Refresh on the DataCombo box. I have also tried using an Adodc control as the DataSource for the DataCombo box and refreshing that but that did not work either and I would prefer not to have to use an Adodc control. So, fundamentally, I think I need to update the Command in the DataEnvironment which I presume will update the DataCombo. Any suggestions greatfully received.
Thanks in advance.
Tom