View Full Version : Open Form By Cmd Button


Haytham
11-18-2001, 03:02 PM
Hi All...
I have a form and wish to open it by 2 buttons. The first button is normal. The other button, I want to display a Delete Button on my form, so those who have the previlage of opening the second form can delete records, while the others who can open form by first button can enter data only and No Delete Button Appear
Hope it's clear.
Thanks in advance

Jack Cowley
11-18-2001, 03:13 PM
Use the OpenArgs property of the Openform method to send a variable to the form. Then make the delete button visible or not depending on the variable sent.

Haytham
11-19-2001, 12:48 PM
Thanks a lot.
Will you explain me more how to use Arg please

Jack Cowley
11-19-2001, 01:00 PM
Search Help for OpenArgs. You will find your answer there.

Haytham
11-19-2001, 06:04 PM
Thank you