Set Focus on Subform

S

selgin

This is Access 2003.

I have a parent form - PatientForm2 and a child form - Rx.

I am trying to set the focus to RxStatus on my Rx subform if it is blank and
DateComplete has data entered.

This is the current code I have. The message box opens up but thats it.

If IsNull(DateComplete) = False And IsNull(Me.RxStatus) = True Then

MsgBox ("Rx Status cannot be Blank")


Me.RxStatus.SetFocus

Me.Repaint
Else

End If

TIA for any help

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top