frmCLOSE:
Code:
Sub Form_Open(Cancel As Integer) DoCmd.Close acForm, "frmOrd", acSaveYes End Sub Sub Form_Timer() On Error GoTo ErrorsoExit NewData = Left(OpenArgs, InStr(OpenArgs, ";") - 2) Store = Mid(OpenArgs, InStr(OpenArgs, ";") + 2) CurrentDb().TableDefs("tblOrd").Fields("Ent").ValidationRule = CurrentDb().TableDefs("tblOrd").Fields("Ent").ValidationRule
Leave a comment: