B burton Registered User. Local time Today, 08:07 Joined Nov 15, 2002 Messages 63 Jan 13, 2003 #1 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
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
Mile-O Back once again... Local time Today, 08:07 Joined Dec 10, 2002 Messages 11,305 Jan 13, 2003 #2 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.
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.
B burton Registered User. Local time Today, 08:07 Joined Nov 15, 2002 Messages 63 Jan 14, 2003 #3 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.
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.
Mile-O Back once again... Local time Today, 08:07 Joined Dec 10, 2002 Messages 11,305 Jan 14, 2003 #4 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
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
R Rich Guest Jan 15, 2003 #5 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
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