How to tell if a form is open

N

Nick Heath

I want to know how to return a value telling me whether or not a form is
currently open. Something like this pseudo-code:

If Forms![new appointment].Open = True Then
'send harry a box of chocolates'
End If

Cheers
 
A

Allen Browne

Assuming Access 2000 or later:
If CurrentProject.AllForms("new appointment").IsLoaded Then
 
N

Nick Heath

that works great thanks, now how do you send a box of chocolates?
--
Nick


Allen Browne said:
Assuming Access 2000 or later:
If CurrentProject.AllForms("new appointment").IsLoaded Then

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Nick Heath said:
I want to know how to return a value telling me whether or not a form is
currently open. Something like this pseudo-code:

If Forms![new appointment].Open = True Then
'send harry a box of chocolates'
End If

Cheers
 
G

George Nicholson

CurrentProject.Chocolates("Truffles").Export

--
HTH,
George


Nick Heath said:
that works great thanks, now how do you send a box of chocolates?
--
Nick


Allen Browne said:
Assuming Access 2000 or later:
If CurrentProject.AllForms("new appointment").IsLoaded Then

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Nick Heath said:
I want to know how to return a value telling me whether or not a form is
currently open. Something like this pseudo-code:

If Forms![new appointment].Open = True Then
'send harry a box of chocolates'
End If

Cheers
 
Top