473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

focus on a button, one at a time...

I'd like to add an 'Admin' form to my db, just a plain and simple (!) form
with 7 buttons, each button just runs macro1, macro2, macro3 and so on.
But - I'd like each button to only have focus after the preceding button
has been pressed (and the macro run). I'd like to fire this form up from
the db's startup form, and allow only 2 or 3 users to be able to operate the
button which runs the admin form. Any help mucho appreciated.

Thanks,
Lap


--
Thanks,
Chris
cc****@NOSPAMeclipse.co.uk
Nov 12 '05 #1
2 2682
Lap,

Set the Enabled property of all the command buttons to No.

To restrict access to the form, perhaps some sort of password entry
could be required, following which the first button is enabled. The
details of how to do this would depend on a number of factors, such as
whether it's just access to these buttons that you want to control, or
permission to open the form itself, and whether you would have
separate passwords for each of the 2 or 3 chosen ones, and whewther
the passwords would need to be changed periodically etc.

After that, you could enable the next button from the macro on the
previous button, e.g. use a SetValue action as the last action in
Macro1 to set the value of [Button2].[Enabled] to Yes, and so on.

- Steve Schapel, Microsoft Access MVP
On Tue, 9 Sep 2003 17:58:33 +0100, "Lapchien"
<cc****@NOSPAMeclipse.co.uk> wrote:
I'd like to add an 'Admin' form to my db, just a plain and simple (!) form
with 7 buttons, each button just runs macro1, macro2, macro3 and so on.
But - I'd like each button to only have focus after the preceding button
has been pressed (and the macro run). I'd like to fire this form up from
the db's startup form, and allow only 2 or 3 users to be able to operate the
button which runs the admin form. Any help mucho appreciated.

Thanks,
Lap


Nov 12 '05 #2
Thanks, I'll give it a go.
--
Thanks,
Chris
cc****@NOSPAMeclipse.co.uk

"Steve Schapel" <sc*****@mvps.org.ns> wrote in message
news:ip********************************@4ax.com...
Lap,

Set the Enabled property of all the command buttons to No.

To restrict access to the form, perhaps some sort of password entry
could be required, following which the first button is enabled. The
details of how to do this would depend on a number of factors, such as
whether it's just access to these buttons that you want to control, or
permission to open the form itself, and whether you would have
separate passwords for each of the 2 or 3 chosen ones, and whewther
the passwords would need to be changed periodically etc.

After that, you could enable the next button from the macro on the
previous button, e.g. use a SetValue action as the last action in
Macro1 to set the value of [Button2].[Enabled] to Yes, and so on.

- Steve Schapel, Microsoft Access MVP
On Tue, 9 Sep 2003 17:58:33 +0100, "Lapchien"
<cc****@NOSPAMeclipse.co.uk> wrote:
I'd like to add an 'Admin' form to my db, just a plain and simple (!) formwith 7 buttons, each button just runs macro1, macro2, macro3 and so on.
But - I'd like each button to only have focus after the preceding button
has been pressed (and the macro run). I'd like to fire this form up from
the db's startup form, and allow only 2 or 3 users to be able to operate thebutton which runs the admin form. Any help mucho appreciated.

Thanks,
Lap

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Wright | last post by:
Hi all. Hopefully this should demonstrate the problem I'm having: http://flooble.net/~pete/focus-problem-demo/ (I'm testing it in Mozilla only, but I'm not sure if it's actually a...
3
by: Philip Townsend | last post by:
I have an aspx page that contains 2 user controls, each containing a seperate textbox and button. I would like to specify that one of the buttons recieve focus when the page loads. Also, I would...
1
by: Workgroups | last post by:
Not having much luck tracking this down... I'm working with a form, Form1, which contains a panel called pnlParent. Both Form1 and pnlParent have AutoScroll = False. pnlParent contains a panel...
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
3
by: Patrick [MSFT] | last post by:
Let me preface this with the goal I'm trying to achieve is mimic a feature of another language (Dexterity used by Microsoft Dynamics) and so while a filling a drop down list is a workable solution...
1
by: google | last post by:
I have a form with several subforms. Users enter the data, then on the parent there is a command button that runs code to generate a .pdf document from a report based on the data they are working...
3
by: jan.loucka | last post by:
Hi, I looked around for this specific problem but could not find any answer - there's few things in VB but still nothing exactly like this so I'd appreciate any help. We're writing C# WinForm...
3
karthickkuchanur
by: karthickkuchanur | last post by:
Hai all, Iam learning struts,while in my login page i use two textbox and an submit button,my problem is when i click the tab key it focus to textbox1 and second time it focus...
2
by: Joergen Bech | last post by:
Hope someone has a solution or some suggestions for this. This cannot be right?!? Problem: I have multiple non-modal forms open at the same time. One or more of these forms have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.