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

Announcement

Collapse

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

MS Access "Select Query" Equivalent

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MS Access "Select Query" Equivalent

    My apologies for the extreme simplicity of my question (just moved from MS Access to AlphaFive).

    Could someone explain me the standard procedure for creating Select Queries in AlphaFive?

    Thank You

    #2
    Re: MS Access "Select Query" Equivalent

    I'm unable to answer your specific question because of a dearth of knowledge about Access. However, bit of general information may help get you going.

    In Alpha Five when you open a form layout the underlying tables are opened automatically. Your field objects in the form layout are automatically bound to the underlying tables. You have the option at design time of defining a filter for the form layout. This hard coded filter will be applied when the form opens. This is called a base level query. You also have the option to omit a hard coded filter expression from your form. The user can then run a query against the unfiltered form to limit the range of records displayed on screen. Both approaches can be scripted.

    May I suggest that you spend some time working through the Alpha Five User Guide, especially the chapter on Sorting and Selecting Records? It's in the helps.

    The tutorial on "finding, selecting, and ordering records" may also be of assistance.

    Welcome to the message board.

    -- tom

    Comment


      #3
      Re: MS Access "Select Query" Equivalent

      Hi Thierry,

      My guess is that you are looking to create something similar to ad-hoc queries in Access via SQL, without using Access 'Saved' queries.

      This is an important consideration for me also. So far, I've not yet downloaded A5 to start playing around - I want to get a clear couple of weeks first.

      But, I've spent some time nosing around the help/support files.

      Best place to look seems to be here:
      http://support.alphasoftware.com/alp...pv10/index.htm

      Run a search on SQL

      Most of the SQL examples seems to use a syntax common to Access. Most of the examples also seem to reference Access mdbs, which is curious in itself.

      The help article on <OBJECT>.QUERYRUN() however does quote:
      "The current script opens a form and only displays records from Massachusetts:"

      But I think the example essentially creates what we would call a filter - ie:
      Me.Filter = "FldName = """ & sVAl & """"
      Me.FilterOn = True

      This in itself is useful (using filters) but I also saw somewhere that a form can not be easily reassigned to a different underlying recordset on the fly. I'm guessing, if you are asking this question, that this is a consideration for you also.

      Obviously, the ability to create complex SQL statements to populate a recordset (as the underlying basis for a form, or run UPDATE, DELETE, INSERT etc.) is fundamentally important. Although Access always had issues converting VBA in SQL to Jet, once one knew the pitfalls, the logic was straightforward. It is also, possibly, more elegant that I'm seeing in the A5 implementation.

      I've got a feeling that certain simplicities that we may have gotten used to with Access may not apply to A5. otoh, I am very mindful that some aspects may be easier. (not looking to pass judgment - just an observation).

      It may also be some of these things will require a custom function or custom add-in. This was certainly true of Access for a while.

      I plan on having the decks cleared by this weekend. At that point I can download A5 and spend the next couple of weeks having teeth pulled learning a new language dialect.

      Once I get started, I'll have a lot of stuff that needs remapping and I'll more be than happy to share any pointers as things progress.

      Good luck with you learning curve.

      Regards,

      Gary

      Comment


        #4
        Re: MS Access &quot;Select Query&quot; Equivalent

        Tom, Gary,

        Thank you very much for your replies to my inquiry.

        As Gary mentioned I am trying to create complex SQL statements to populate a recordset (combination of more than 5 tables + many calculated fields).

        In Access, I can do it very simply without having any knowledge of SQL by simply using the Query Wizard and linking each table/query together.

        So far, I can't find a way to get the same result in AlphaFive.

        Now again, I am a newcomer to AlphaFive (less than a week), so I may very well have missed the obvious...

        I will read through all available training documents this week-end and can hopefully find a solution to my (very basic) issue.

        Thank you for your kind support!

        Thierry

        Comment


          #5
          Re: MS Access &quot;Select Query&quot; Equivalent

          Thierry,

          This is quite easy to do in Alpha as well....once you get your mind into the methodology of how it works (differently than Access from what I have read).

          Anyway....Here is an intro as to one way to do what you are looking to achieve.

          Create a form based on a table (a dummy table is fine).
          Then do the following:

          1. Draw a button on that form. When the button action window comes up choose action scripting. Click next.
          2. Click the Add New Action symbol
          3. Choose form->Open Form or Browse Layout
          4. Click OK
          5. Next choose what form you want to open
          6. click Next
          7. You are presented now with a list of the various was to "populate" the form
          8. Choose Records Selected by a filter expression
          9. Build your query from there



          If the form you chose is based on a set you can in essence build your SQL statement in the query builder. It is very powerful actually.

          Hope that helps get you going....

          Regards,

          Jeff

          Comment


            #6
            Re: MS Access &quot;Select Query&quot; Equivalent

            Thanks a lot Jeff.

            I agree that one must get his mind around the methodology behind AlphaFive, especially after having used Access for many years.

            I will follow the procedure you recommend and get back to you.

            Thank You!

            Thierry

            Comment

            Working...
            X