Two events for one button

  • Thread starter Thread starter Veli Izzet
  • Start date Start date
V

Veli Izzet

Hi all,

I have a button on a Switchboard that opens Form1 (on click). Can I
modify the code so that when ý let's say use shift-click, or ctrl-klick,
the button opens Form2?

Thanks for answers.
 
Veli said:
Hi all,

I have a button on a Switchboard that opens Form1 (on click). Can I
modify the code so that when ý let's say use shift-click, or
ctrl-klick, the button opens Form2?

Thanks for answers.

You certainly can use the double click. Just go to properties events
tab. However are you sure you want to do this. It would usually be more
apparent for the user to see two buttons with different functions than a
single button with two functions that may not be easy to remember every
time.
 
probably your best bet is to learn how to write an if statement, and have do
one out of the two things when the user clicks.

if you explain your form then you would be able to get help on the if
statement.

sam
 
I have two forms, one with cost detail and the other without.

I would like anybody to open the form without, and leave the other to
some admins.

I want this to be undocumented, so doubleclick is out of the question.
 
I'd still suggest that you make a separate button for the admins to
use. Then you might ask for a password. To protect sensitive data the
way you described looks a little risky to me.
 
Veli said:
I have two forms, one with cost detail and the other without.

I would like anybody to open the form without, and leave the other to
some admins.

I want this to be undocumented, so doubleclick is out of the question.

How about user level security?

Have you split the database? Then you could have different forms for
each user on their own machine and far less chance of corruption and fewer
other problems.
 
It seems I have to learn abt user level security of access.

Being an IT security consultant, I do not very much rely on user level
securities of applications, but anyhow this is not a very important
application.:-)
 

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

Back
Top