How to write an array?
I want to perfrom an action only when a certain customer number is chosen in the atabase.Unfortunately the customer numbers do not follow any logical order, rather they are numbered after the postal code of the city.So my customer numbers are:
123,9000,2700,6300,5000 and 7700.
I would like to write a code something like that:
Dim CustomerId as Control
Set customerID = Forms![FOrderInformation]![Customerid]
If CustomerId = 123 Or 900 Or 6300 or 5000 Or 770 Then
Dim message, title, default, myvalue
message = “enter Auftrag Number, please ” ‘set prompt
end if
However somehow Acces cannot recoginze my numbers.Is there any more bulletproof method as Array,
or perhaps i am mistaken with my code?