473,406 Members | 2,769 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,406 software developers and data experts.

Password Command button on a switchboard

I created a command button that will not open unless a password is put in. For some reason my command box is gone. I can still see the previous command button instructions in VB, but I can't get figure out how to re-attach the command to the button. Can anyone help me?

Thanks in advance.
Jun 11 '11 #1
2 2335
Mihail
759 512MB
Assuming that your VB code is for "On Click" event, do:
Unsure that Control Wizards is OFF.(Re)Create the command button on the form. Give it the same name as the previous one. In Property Sheet, under EVENT tab, click to create "On Click" event for your new button. That's all.
Good luck !
Jun 12 '11 #2
Adam Tippelt
137 100+
Should Mihail's suggestion not work, it'll most likely recreate a new set of Private Sub / End Sub tags instead of linking back up with the existing procedure that you already have from the previous one.
In this case, simply copying and pasting the previous button code into this new procedure would suffice (minus the duplicate lines of private sub/end sub).
Jun 14 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Melissa | last post by:
What is the code to delete a command button from a form? Can the code be run from the click event of the button to be deleted? Thanks! Melissa
6
by: deko | last post by:
I have a several forms that accept user input in a textbox and then take some action based on that input after a command button is clicked. Is it possible issue the command when the user presses...
1
by: Steve Patrick | last post by:
Hi All Looking for a code to make a command button close a welcome form and then open a switchboard form. Need step by step if possible - as complete newbie here. Thanks for any / all help....
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
4
by: John Smith | last post by:
I have a continuous form. there is a command button with the following code for the OnClick event: DoCmd.OpenForm "frmPlants", , , "PlantsID =" & Me!PlantsID I click the button and frmPlants...
1
by: petekikamookow | last post by:
Hi Guys.........Help Please I'm trying to add a password to limit access to a command button called"Confidential Information" Mucho regardo
3
by: dmc226 | last post by:
Hello, I am somewhat a newbie to Access and am trying to find out if there is a way to isolate one button on the switchboard with a password? That one switchboard option leads to another list of...
9
by: amanda27 | last post by:
Is there anyway to password protect a switchboard button the main switchboard so they can not get to the swtichboard it goes to or any of it's options? Please help I have been trying code I found...
9
by: jcnovosad | last post by:
Hello, I need the procedure and/or code to add a command button to the Main Switchboard form, so the user click it and creates a full backup of the database in other folder, where the database name...
4
beacon
by: beacon | last post by:
Hi everybody, I have a main form, frmDeficiency, that has a tab control, deficiencyTabControl, that has a subform, fsubEpisodeDetail, on page 2 of the tab control. I also have a command button...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.