Hello:
I am getting this error:
On the following (red line is the error):
I feel like I have done this exact same logic several times. The only difference is I am looking at the minimum date ans passing that information through the variable MinDate.
The actual query works great!
![Name: 2021-01-08 10_19_13-Window.jpg
Views: 26
Size: 33.6 KB]()
What am I missing here?
Thank you!
I am getting this error:
Code:
System.Data.ConstraintException: 'Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.'
Code:
Public DS As New PurchasingRequestDataSet
Private Sub Updatedb_Request()
Dim Status As String = CheckStatus()
Dim RequestID As Integer = CInt(txtID.Text)
Dim ta_MinRequestID As PurchasingRequestDataSetTableAdapters.PartsTableAdapter = New PurchasingRequestDataSetTableAdapters.PartsTableAdapter
ta_MinRequestID.FillBy_MinRequestID(DS.Parts, RequestID)
Dim MinDate As Date = ds.Parts.Rows(0)(1)
Dim ta_Request As PurchasingRequestDataSetTableAdapters.RequestTableAdapter = New PurchasingRequestDataSetTableAdapters.RequestTableAdapter
ta_Request.UpdateQuery(cboRequestor.Text.Trim, datDate1.Value, cboPriority.Text.Trim, MinDate, datExpectedDate.Value, "", Status, CInt(txtID.Text))
End Sub
I feel like I have done this exact same logic several times. The only difference is I am looking at the minimum date ans passing that information through the variable MinDate.
The actual query works great!
What am I missing here?
Thank you!