I am in the process of modifiying the MS Access sample database "Northwind" or use at a local not for profit orginzation. I have very limited MS Access skills.
The subset of code below is from the Form "Order Subform for order details". In the field "Quanity" below, I would like the code to write a blank field rather than a "0".
In other words, the line
Me![Quantity]=0, should be something like Me![Quantity]=blank
I have tried using "" , "empty" and a few others. I have also tried using default values of such as "". Any help will be appreciated.
Private Sub Product_ID_AfterUpdate()
'Initialize price and discount for each product change
If Not IsNull(Me![Product ID]) Then
Me![Quantity] = 0
Me.Quantity.Locked = False
Me![Unit Price] = GetWholesalePrice(Me![Product ID])
Me![Discount] = 0
Me![Status ID] = None_OrderItemStatus
'Empty Product records mean user wants to delete line item
Else
eh.TryToRunCommand acCmdDeleteRecord
End If
End Sub