How do I use the inputbox value entered in a form? I am trying to automatically fill in a field on a form becaues, the users seem to forget the product when they don't have to enter a batch. The product usually defaults to a value when a batch is entered but if they don't have a batch # then they often forget to enter the product too. Here is my code I can get the prompt to pop up but the value is not transfering to the product field. Thanks
RBE
Private Sub BATCH_LostFocus()
Dim answer As String
answer = InputBox("What is the product for this move?"
If [Batch] = Null Then
[Product] = answer
End If
End Sub
I have not tested this to see what it will do if there is a batch# in the batch field. This box may pop up all the time.
RBE
Are you 100% sure of where you are going.
RBE
Private Sub BATCH_LostFocus()
Dim answer As String
answer = InputBox("What is the product for this move?"
If [Batch] = Null Then
[Product] = answer
End If
End Sub
I have not tested this to see what it will do if there is a batch# in the batch field. This box may pop up all the time.
RBE
Are you 100% sure of where you are going.