Simple code question

J

Jeff

I have a form, Form1, with two command buttons. Each
button opens a second form, Form2.

Command Button1 opens Form2 in add mode, Command Button2
opens Form2 in edit mode.

If data mode = acFormadd, the footer should be invisible.

On Form2, I am having trouble locating the parameter to
read to enable this condition.

I have unsuccessfully tried " if me.forms.allowadditions
= true ...."

What parameter should I should be calling on Form2 to
allow for this to happen.

Thanks in advance.

Jeff
 
G

Guest

got it - the field is "me.dataentry". I only passed over
it for two hours.

Thanks
 
E

Emilia Maxim

---------- "Jeff said:
I have a form, Form1, with two command buttons. Each
button opens a second form, Form2.

Command Button1 opens Form2 in add mode, Command Button2
opens Form2 in edit mode.

If data mode = acFormadd, the footer should be invisible.

On Form2, I am having trouble locating the parameter to
read to enable this condition.

I have unsuccessfully tried " if me.forms.allowadditions
= true ...."

What parameter should I should be calling on Form2 to

Jeff,

take a look to the OpenArgs parameter of the OpenForm statement.
Setting the data mode in the OpenForm statement doesn't change the
AllowAdditions or AllowEdit property of Form2, so you'll have to pass
the mode as an OpenArgs.

Best regards
Emilia

Emilia Maxim
PC-SoftwareService, Stuttgart
http://www.maxim-software-service.de
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top