Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook



The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic

Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.

If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.

Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.

Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Change Button Password from Another Button on Another Form

  • Filter
  • Time
  • Show
Clear All
new posts

    Re: Change Button Password from Another Button on Another Form

    Have just whipped up an example of this functions use
    �There is nothing like a dream to create the future.�
    But then again:
    Basic research is what I am doing when I don't know what I am doing and to steal ideas from one person is plagiarism; to steal from many is research!


      Re: Change Button Password from Another Button on Another Form

      I received your data base and I'm confiused. So what's now.
      I thought you aere going to show me the syntax on how to code the "is_one_of() and "User_Groups() which would be placed on the Main Menu Button called "Administrative Menu" so when the user pushed it, the security test would occur.

      I set up the users and groups and database login password which worked fine however after I selected my user name and password, instead of opening the Main Menu, it opened the control panel. When I selected the Main Menu form and pressed the Administration Menu Button, I received an "empty expression" error message.


        Re: Change Button Password from Another Button on Another Form

        Very nice Charlie.

        Once a user logs in with his name and password and procedes to the Main Menu and presses the "Maintain Users" button
        - if the person logged in does not have adinistrative rights per security table,
        - want to display a message "No Administrative Rights - see Administrator " and
        exit the script and remain in the Main Menu so he can either Exit the application
        or proceed to another Menu via another Button.
        - if the person logged in "does" have administrative rights,
        - want to Open the Administrative Form.

        I changed my entry to a level 2 and still was able to proceed to "Maintain Users" on a Push. Is this an easy fix or am I way off base on this?

        Thanks in advance for your patience with me.



          Re: Change Button Password from Another Button on Another Form

          Rudy, oops. I uploaded your old zip, instead of the modified one. Will fix and upload with a new filename. Standby.

          Ok, here you go. Unzip this to an empty folder. Do not unzip it to your existing database folder. Open the database with vers 9. Log in as Rudy or Tim. Push the button on the Main Menu. Rudy cannot get to the second form, Tim, can. The work is done in the onPush event script for the Administrator Form button. Notice the conditional expressions attached to the two Actions.

          This can be improved further, but I'd need the Administrator's password for the database, which you have not yet supplied.

          -- tom
          Last edited by Tom Cone Jr; 04-25-2008, 06:25 PM.


            Re: Change Button Password from Another Button on Another Form

            This is nice! I'm really excited. The administrators password is dobie.

            When the user is a member of the user_group, it opens the form. When the user is not, it drops into the Control Panel. It would be nice if a message box appeared that stated "Not Authorized" and allowed the user to stay on the Main Menu and go somewhere else where he/she is allowed.

            Can you modify the Conditionsl statement with an if, else, then statement?

            I also created a security Menu using the A5_Security_Option's and it's great. This way the clubhouse president who is the administrator can add or delete users and change passwords.

            Thanks again,


              Re: Change Button Password from Another Button on Another Form

              When the user is not, it drops into the Control Panel.
              That will only happen if you close the Main Menu form. In my example this never happens because I removed the close form ACTION from your previous script. Are you seeing this in my example? If so tell me the exact sequence of steps that drops Rudy down to the control panel after he logs in.

              In my example the Main Menu form is opening immediately after log in. I made it the startup form for the database. My "Administrator Form" button does NOT close the form. The second form is opened on top of it.


              ps dobie is NOT the administrator password for the database you posted here. I still can't log in as Administrator


                Re: Change Button Password from Another Button on Another Form

                I see it. Your help is so much appreciated. I've spent hours researching the How To's in Alpha's Help System (there is sooo much to learn). I found that some of the examples leave of lot to be desired (Syntax not clearly defined), however, I have to say that Alpha5 blows away the competition.

                I'm working on an application for our Clubhouse. I live in a Senior Citizen community. They currently have an Access system that is "sooo bad". What I have now blows away their application and I'm just starting out. I can't wait to become proficient in Alpha like all of you. I too will help newbie's like you and others on this board once I master Alpha.

                The clubhouse does not have a network server setup. I beleive that the computers are attached via cable? I have to check their configuration one day.

                Again, my thanks to all that spent their valuable time to provide me with some code examples. Once this is cleaned up, I would share it with anyone that was interested.


                  Re: Change Button Password from Another Button on Another Form

                  I changed the code on the maintain users button
                  to give message

                  "User has No Administrative Rights"

                  see attached zip


                    Re: Change Button Password from Another Button on Another Form

                    I unzipped ot to the same directory however when I ran the app, enyered my name and password, a windows popped up stating tha "It could not load the specified form "Main Menu", using a Default form" appeared and when I clicked OK, it took me to the Maintain Users Form??


                      Re: Change Button Password from Another Button on Another Form

                      I can't help you without a current copy of your database. Your posts will be easier to understand if you don't use the word "it". That's a word that means something to you, but could mean a variety of things to your readers. All I can tell is that you unzipped something to some directory and have a problem. Not much for me to go on, is there?

                      The error message suggest the database you were opening does not contain a form named "Main Menu". I have no clue why that should be unless you've renamed or deleted the form I used in my example.
                      Last edited by Tom Cone Jr; 04-26-2008, 10:34 AM.