Hi,
I'm trying something in VBA and I'm not sure if its possible.
I'm trying to add an event before insert and set a counter field to a value result of a query (LastCounterValue) and add on 1. Is this possible? Additionally, the query must be run on the current form Cust_FK field. How would I combine this function into the code?
' Insert value result of LastCounterValue Query and add 1
Me.Counter = [Query].[LastCounterValue].[Counter] + 1
I'm trying something in VBA and I'm not sure if its possible.
I'm trying to add an event before insert and set a counter field to a value result of a query (LastCounterValue) and add on 1. Is this possible? Additionally, the query must be run on the current form Cust_FK field. How would I combine this function into the code?
' Insert value result of LastCounterValue Query and add 1
Me.Counter = [Query].[LastCounterValue].[Counter] + 1
Last edited: