I tested it more and I cant get the IF statement to run : It always jumps to the ELSE
updated code still not working:
Private Sub Command47_Click()
Dim strSQL As String
If DLookup("NumOfCopys", "Books1", "ISBN=" & Forms!CheckOutMenu.ISBN) = 0 Then
MsgBox "Book is unavaliable."
Else
strSQL =...