G
Guest
Hello, I have a Customer screen that I want to some validation before
creating a new customer. When entering a new customer, I check it the
customer already exists, I then prompt the user with another screen with the
potential existing customer and the user can stop the creation of a new
customer.
I have the following code in a subroutine on the Customer Screen that closes
the screen without creating a new customer row.
Forms!fCustomers.Undo
DoCmd.close acForm, "fCustomers"
This code work fine when called from the customer screen but when called
from my second window it always creates a new row. Anyone know why this is
and how to force the Customer screen not to do a save while closing?
Thanks
creating a new customer. When entering a new customer, I check it the
customer already exists, I then prompt the user with another screen with the
potential existing customer and the user can stop the creation of a new
customer.
I have the following code in a subroutine on the Customer Screen that closes
the screen without creating a new customer row.
Forms!fCustomers.Undo
DoCmd.close acForm, "fCustomers"
This code work fine when called from the customer screen but when called
from my second window it always creates a new row. Anyone know why this is
and how to force the Customer screen not to do a save while closing?
Thanks