Limit Combo Box

  • Follow


I will do my best to make some since. 
I have a form for entering data into a table named dispatchdetatils  The 
Combo Box named vehiclebox on the form shows vehicle license plates numbers. 
When a vehicle is chosen a new record is started and the new record milesout 
field on the dispatchdetails table is populated from the max of the milesin 
field. Below is what I have in the After update of the combox. 
What I would like to happen also is if there is a milesin field that is null 
then do not start the new record but have a pop up appear stating the vehicle 
is already out. Thank you in advance

Private Sub VEHICLEBOX_AfterUpdate()
       If Not IsNull(Me.VEHICLEBOX) Then

       Me.milesout = _
                DMax("milesin", "dispatchdetails", _
                    "tagnumber = " & Me.VEHICLEBOX)


End If


End Sub
0
Reply Utf 6/7/2010 5:33:32 PM


0 Replies
452 Views

(page loaded in 0.013 seconds)

Similiar Articles:
















7/25/2012 8:08:59 AM


Reply: