brbarto
Technical User
- Sep 6, 2001
- 34
Can I use IN in an if statement? If so, how?? How would be the best way to do the following?
If Me!VehicleNumber.Column(5) IN("820", "822", "824"
And
[EndMileage] - [BeginMileage] < 1000 Then
Form!fsubPerMileCharge.Form![Quantity] = 1000
Else
Form!fsubPerMileCharge.Form![Quantity] =
[EndMileage] - [BeginMileage]
End If
Thanks (new to Access)
If Me!VehicleNumber.Column(5) IN("820", "822", "824"
[EndMileage] - [BeginMileage] < 1000 Then
Form!fsubPerMileCharge.Form![Quantity] = 1000
Else
Form!fsubPerMileCharge.Form![Quantity] =
[EndMileage] - [BeginMileage]
End If
Thanks (new to Access)