I have an Inventory and Sales database built from a template I found.
Inventory is recorded in an Inventory Transactions table with fields for product and quantity.
Sales are recorded in a sales detail table with similar fields.
When I enter a sale through the Sales Detail sub form it is not recorded in the Inventory Transaction table.
In design view the detail in the event tab for both product and quantity is all blank.
I looked at the Visual Basic and there are 2 procedures listed for product and quantity.
On changing the After Update to [Event Procedure] I end up with a Visual Basic compile error User-defined type not defined.
I can't seem to get a photo off my phone onto this post so excuse any typing errors.
The procedures are identical except for their name.
Private Sub Combo6_AfterUpdate()
Dim IT As InvenyoryTransactions
IT.ProductID = Me ! [Product ID]
IT.Quantity = Me ! [Quantity]
IT.AllOrNothing = True
IT.InvenyoryID = Nz(Me ! [Inventory ID],NewInventoryID)
In the debugger the IT As InventoryTransactions is highlighted.
I have the Inventory Transactions table name exactly as in VB but it still fails.
What can I do to get this working?