open edit/ open add

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

Guest

How can you tell if you form has been opened in edit mode of add mode? (ie by
the switchboard). I would like my form for add record to be as limited as
posible (no selectors etc) where as view all will require more detail. I
thought if I could tell which mode it was opened in I could hide/change
controls as reqd.
Or should I just create 2 different forms.

Thanks in advance

TK
 
You can pass an argument to your form, and check it in the form's Open or
Load event.

Look up the OpenForm Method in the Help file for how to pass, and follow the
hyperlink to OpenArgs Property.
 
tpkt said:
How can you tell if you form has been opened in edit mode of add
mode? (ie by the switchboard). I would like my form for add record
to be as limited as posible (no selectors etc) where as view all will
require more detail. I thought if I could tell which mode it was
opened in I could hide/change controls as reqd.
Or should I just create 2 different forms.

Thanks in advance

TK

If DataEntry = True Then
'form was opened in add mode
End If
 
Back
Top