Auto display a Value (1 Viewer)

mike60smart

Registered User.
Local time
Today, 03:54
Joined
Aug 6, 2017
Messages
1,913
Hi Everyone

I have a Combobox named "cboDriver" has the following :-

Row Source:

Code:
SELECT DriverT.DriverID, [DriverFName] & " " & [DriverLName] AS Driver, DriverT.TruckNumber, DriverT.TrailerNumber FROM DriverT;
with an after

And an Update Event as follows:-

Code:
    sSource = "SELECT qryForExpired.DriverID, qryForExpired.LoadID, qryForExpired.ShipRecvCD " & _
      "FROM qryForExpired " & "WHERE [DriverID] = " & Me.cboDriver

   Me.cboBanned.RowSource = sSource

My 2nd Combobox named "cboBanned" with a:-

Row Source:
Code:
SELECT qryForExpired.DriverID, qryForExpired.LoadID, qryForExpired.ShipRecvCD FROM qryForExpired WHERE [DriverID] = 2
displays the correct values when a Record is selected.

Is it possible to automatically display the first value in the dropdown list without having to select a value?

Any help appreciated.
 

Users who are viewing this thread

Top Bottom