i have a winform connected to .accdb file. But while creating rdlc report i found that the naming was not correct in my accdb file(contained hyphen) and i changed it accordingly and configured the data set query too and refreshed the connection , but still during execution the below error is coming .
System.ArgumentException: 'Cannot bind to the property or column Condition_of_DIE-7 on the DataSource.Parameter name: dataMember'
And this is my master table SQL :
SELECT ID, Size_in_mg, Die_head_number, Inspection_Date, Next_Calibration_On, Die_size_in_microns, Condition_of_DIE_1, Condition_of_DIE_2, Condition_of_DIE_3, Condition_of_DIE_4, Condition_of_DIE_5, Condition_of_DIE_6,Condition_of_DIE_7, Observations, Inspector, Issued_to_Maintanance
FROM MSdies
form load code
private void FormMsdies_Load(object sender, EventArgs e)
{
this.mSdiesTableAdapter.Fill(this.trialDataSet.MSdies);
this.mSdiesTableAdapter.Fill(this.trialDataSet.MSdies);}
What I have tried:
And this is where the error is showing is my program.cs file
<pre lang="c#"> static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FormMsdies());
}
}
}