close popup form

  • Thread starter peljo via AccessMonster.com
  • Start date
P

peljo via AccessMonster.com

In my on current event i am opening a pop up form according to the code
listed below.However when i want to move to the next customer,the pop up form
does not want to close. How can i make the pop up form close each time i move
to the next record.I need this to happen in the on curret event

Dim stDocName As String
Dim stLinkCriteria As String
stDocName = " PopuUpCustomers"
stLinkCriteria = "Forms![PopUpCustomers]!CustomerID =" & Me.Customerid

DoCmd.OpenForm "PopUpCustomers"
 
Top