I am trying to prevent users from entering a order without the correct fields filled in such as CustomerID.
Here is my criteria; These fields must be filled in! CompanyOrderSubform is the name of the subform. Main form is named CompanySellInventory
Company
Customer
Employee
Shipping Method
SubmittedBy
OrderDate
PurchaseOrderNumber
Here is what I tried with no luck.
If IsNull([CustomerID]) Then
Me.CompanyOrderSubform.Enabled = False
Else
If IsNull([EmployeeID]) Then
Me.CompanyOrderSubform.Enabled = False
Else
If IsNull([OrderDate]) Then
Me.CompanyOrderSubform.Enabled = False
If IsNull([PurchaseOrderNumber]) Then
Me.CompanyOrderSubform.Enabled = False
End If
Of course my idea here is to disable the subform until the fields have been properly filled in.