Hi All, I made a form based on a query.After the form is opened, if there's no data displayed in the form, I want a text get focus and let user enter the part number which they want to view. I wrote a little code, but it did not work. I don't know what's wrong about it. Could someone help?
Failed to upload the db I attached a picture of the form in design mode.
Private Sub Form_Activate()
If IsNull(Me.txtPartNumber) Then
Me.txtText15.SetFocus
End If
End Sub