Difficult

burton

Registered User.
Local time
Today, 09:32
Joined
Nov 15, 2002
Messages
63
ok In My Database I Have People Who Book out items. i need to be able to know if that item has already been booked out.
how can i do this
 
You could create a further field (Yes/No) that, when the item is checked out, you set it to Yes, and likewise No when it has been returned.
 
i Already have a returned item (yes/no).

but i want the computer to tell me whether it has been booked rather than looking myself.
 
Couldn't you use the DLookup function then:

Code:
If DLookup("[Booked]","tblItems","[ItemName] = '" & Me.txtItem & "') = -1 Then
   MsgBox "Yes, it's booked."
Else
   MsgBox "No, it's not booked."
End If
 
If your selecting "items" from a combo then simply adding the yes/no field to the combos underlying query and setting the criteria for the yes no field to no will prevent the booked out items being available for selection
 

Users who are viewing this thread

Back
Top Bottom