Hi,
I am fairly new to access and am having trouble writing an expression for the default value in my field properties,
I have a field name: Batch Number and I need to have this default to the last number entered until a new number is entered I have tried the following but I am afraid it was written for something else and I do not know how to adapt it to fit my needs or if it is the correct one I need to use.
Please help getting desperate..
Type RecItems
Field1 As String
Field2 As String
Field3 As String
End Type
Dim mRecItems As RecItems
Before_Update
mRecItems.Field1 = Me.txtField1
mRecItems.Field2 = Me.txtField2
mRecItems.Field3 = Me.txtField3
End Sub
On_Current
Me.txtField1 = mRecItems.Field1
Me.txtField2 = mRecItems.Field2
Me.txtField3 = mRecItems.Field3
End Sub
I am fairly new to access and am having trouble writing an expression for the default value in my field properties,
I have a field name: Batch Number and I need to have this default to the last number entered until a new number is entered I have tried the following but I am afraid it was written for something else and I do not know how to adapt it to fit my needs or if it is the correct one I need to use.
Please help getting desperate..
Type RecItems
Field1 As String
Field2 As String
Field3 As String
End Type
Dim mRecItems As RecItems
Before_Update
mRecItems.Field1 = Me.txtField1
mRecItems.Field2 = Me.txtField2
mRecItems.Field3 = Me.txtField3
End Sub
On_Current
Me.txtField1 = mRecItems.Field1
Me.txtField2 = mRecItems.Field2
Me.txtField3 = mRecItems.Field3
End Sub