1) Check the DataEntry Property of the form
2) Look at the parent property, if a form obkject is a subform then its
..Parent property will return an object, if it isn't then referring to its
..Parent property will return a trappable error (2452)
--
Terry Kreft
MVP Microsoft Access
"JSMiami" <js*****@unete.com> wrote in message
news:44**************************@posting.google.c om...
The switchboard has a way of opening forms in either Add mode or in
Edit mode. Is there anyway of testing for that mode in VB code? If not
is there a way of testing (within a subform) if there is a parent?
Thanks