如何改进我的查询,以便只选择那些尚未在 Pasenger_Detail 表中选择的记录。
Private Sub BR_ID_LostFocus()
Dim s As String
s = "Select seat_no.seat_no" & _
" FROM Seat_No" & _
" Where seat_no.seat_no <= " & _
" (select br_info.Seats_Reserved from br_info where " & _
" Br_info.br_id=forms!pasenger_detail!br_id);"
Me.Seat_No.RowSource = s
Me.Seat_No.Requery
End Sub