if else

  • Thread starter Thread starter Marcelino Benitez via AccessMonster.com
  • Start date Start date
M

Marcelino Benitez via AccessMonster.com

I'm triyng to fild checkoudDate and InOrOut field but I can't because
everytime that the CheckoutID is empty keep filling out the other two. my ?
is if the field is empty is suppose to leave empty the other two.

Private Sub CheckoutID_AfterUpdate()
If CheckoutID = " " Then
CheckoutDate = " "
InOrOut = 0
Else
CheckoutDate = Date
InOrOut = 1
End If


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top