I have this in a public function:
I need to change the code to do the following:
I need to check one table and make sure the user enters a number that is in the QuoteNumber field for a record in the table AND check another table and make sure the OrderNumber field does not already have that number in any of the records in it.
Can some one tell me how to add the code to my function.
Code:
Dim varInput As Variant, neworder As Long
varInput = InputBox("Please enter quote number for new order.")
If IsNumeric(varInput) = False Then
MsgBox varInput & " is not a valid quote number."
Exit Function
End If
neworder = CLng(varInput)
I need to change the code to do the following:
I need to check one table and make sure the user enters a number that is in the QuoteNumber field for a record in the table AND check another table and make sure the OrderNumber field does not already have that number in any of the records in it.
Can some one tell me how to add the code to my function.