Check design mode

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi y'all

Newbie question!!

How do I check for design mode in code in an Access form?

All suggestions gratefully received....

Tia
 
This kind of thing:

strForm = "Form1"
If SysCmd(acSysCmdGetObjectState, acForm, strForm) > 0 Then
If Forms(strForm).CurrentView = acCurViewDesign Then
Debug.Print "design view"
End If
End If
 
Back
Top