1. Open the form f02SalesInvoices, go to the first line on the sub form on "Inventory".
2. Bottom left there is a field named "txtUnitPriceSaleD", a zero displays. The same with the second line on the sub form.
3. Go to the third line, the field at the bottom display a 1 and in the middle of the form a blue button appears. "Set Sales Unit Price Manually".
4. The blue button is named "btnSalesUnitPrice". The intent is have the button visible when "txtUnitPriceSaleD" is greater than zero. That is all.
5. The VBA under the form"Current event" is;
If Me.txtUnitPriceSaleD > 0 Then
Me.btnSalesUnitPrice.Visible = True
Else
If Me.txtUnitPriceSaleD = 0 Then
Me.btnSalesUnitPrice.Visible = False
End If
End If
6. Create a fourth line on the sub form, select "Other Income" again, and from the list that came up select "Commission" or "Donations" or "Interest".
7. The field "txtUnitPriceSaleD" bottom left will display a 1 when one of the three in 6 above is selected.
8. The blue button should have appeared, but it does not. It may be a "requery" issue. I tried a few ways, but not a way that works. Go to a previous line and return to this line then it works. The moment "txtUnitPriceSaleD" changes from 0 to 1, the blue button must display.
9. The sub form is f02SalesInvoicesSub. There is one "Public sub" in the VBA that does part of the job here.