By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,506 Members | 2,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,506 IT Pros & Developers. It's quick & easy.

Add mode and Edit mode with Switchboard

P: n/a
Hello. My switchbaord contains 2 options: add a record and edit a
record. So, of course, if I click add a record, the first form opens
in add mode; if I click edit, the first form opens in edit mode. BUT,
when I click on the nav buttons I've created on the forms, the next
form will only open in the mode specified by the code for that button.
So I need to find out how I can set up the code so that, if I open the
first form in add mode, the next form will also open in add mode;
likewise, if I open the first form in edit mode, the next form will
open in edit mode.

Hope that makes sense!

Jun 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

ph****@ibhs.org wrote:
Hello. My switchbaord contains 2 options: add a record and edit a
record. So, of course, if I click add a record, the first form opens
in add mode; if I click edit, the first form opens in edit mode. BUT,
when I click on the nav buttons I've created on the forms, the next
form will only open in the mode specified by the code for that button.
So I need to find out how I can set up the code so that, if I open the
first form in add mode, the next form will also open in add mode;
likewise, if I open the first form in edit mode, the next form will
open in edit mode.

Hope that makes sense!


Off the top of my head, write the value of the open mode being used to
a variable before opening the first form, then use that in all
subsequent calls...

?acformadd
0
?acformedit
1
?acformreadonly
2
?acformpropertysettings
-1

So, you'd do something like set a global variable when you open your
first form.
public gintOpenMethod as integer
gintOpenMethod = [set to one of the above values]

then afterwards,
docmd.openform "myform", gintOpenMethod

Jun 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.