Hello,
I have a main form with sub form.
there is one combo1 in main form.
in sub form there is a control named orderdate.
i put in sub form before update event this code but this is not move the focus on combo1.
Plz tell me where is problem.
thanks
Code:If Len(forms!main.combo1 & vbNullString) = 0 Then MsgBox "select combo1 first" Cancel = True forms!main.combo1.setfocus End If