Using VS 2017 Community for a Windows Forms Application based on Access Database
My Main form displays data for a single Table (DayBook Customer Requests) using a DataAdapter/BindingSource combination (DADayBook and BSDayBook).
The DayBook table has relationships with other tables from the Access dB with the DayBook Table storing Foreign Key values from those related tables.
I use other BindingSources eg. BSAction to provide the data to display data from the related tables where;
ActionTable has
PK_ActionId as Autonumber
Action_Description as Short Text
DayBook Tables stores
FK_ActionId as Number
I use a ComboBox to display the required Action_Description on my form by binding the combobox to BSAction and also creating a new binding ("selectedvalue",BSDayBook,"FK_ActionId) and adding that binding to the combobox.
The Form uses a BindingNavigator to display the records.
I need to set a date value based on the user's choice from the combobox.
My problem is that the combobox.selectedIndexchanged event fires during the Form_Load event and whenever the BindingSource Position changes which then automatically sets the Date value.
I need to prevent the combobox.selectedIndexchanged event until the bindingsource position change has occurred.
Any clues on how to achieve this?
Cheers,
Rinso