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

Counting the no ok filtered records

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

    Counting the no ok filtered records

    My reports Consist of the no. of records filtered from a data bank. how do I count the no. of records that have been filtered and include this no. in the report?

    #2
    there is probably more than one way to do this.

    I'd look first to using a calculated field in the report layout that uses tablecount() or dbcount() to compute the number of records that match your filter criteria.

    On the other hand, if you run the query first, and then call a report "based on currently selected records" you could get the count from the query object, and pass it to the report layout using a variable.

    -- tom

    Comment


      #3
      Tom, I appreciate your responding to my cry for help. I am still having problems and cannot seem to figure out how to do it. One of the simpliest reports that I am generating is the no. of active members we have in our Masonic Lodge. If a person is active The field (Status) is noted as "A". The filter expression is Status="A" This finds all the members that are active in the lodge and are included in the report. At the end of the report I would like to give the count of the number of members who are active. The name of the data base is MEMBER. I generate other reports but this is the simpliest one and if I can figure out how to count the no. of filtered records I can apply this procedure to the other reports. If you can give me any additional help I will appreciate it.
      Cyrus

      Comment


        #4
        Examples showing alternative approaches

        Cyrus,

        Unzip the attachment to an empty folder.

        The form contains two calc fields that illustrate use of tablecount() and dbcount() to compute a filtered count without running a query against the instance of the table being displayed on screen. These calc fields can be used in your report layout.

        There are two reports also. These illustrate another way to compute the count of records appearing in each report. Note that the calc field expression is the same in each report. The layouts differ only in the fact that one is filtered and the other is not.

        Hope this helps.

        -- tom

        Comment


          #5
          Again Tom, I appreciate your quick response to my recent request for more help. I downloaded your file and unzipped it. When I tried to run it I got the screen telling me that I had to have the professional version of Alpha 5 to run the data set. Unfourtinately I have the Home Version. The Manual may expound on this application, however, I have not been able to find anything on it. Any suggestions or recomendations that you have now will be appreciated.
          Thanks
          Cyrus

          Comment


            #6
            Suggestion #1 is to mention you're using the Home edition when posting here, I assumed otherwise. However, this is no big deal in this case.

            Create a new database in the same folder where you unzipped my example. Then use Alpha Five to "add" my table to your new database. Both the form and the two reports should show up just fine. Holler if you have trouble.

            -- tom

            Comment


              #7
              Tom:
              I appreciate your patience with me. I followed your last recommendation and sure enough I have come up with a procedure to count the No. of filtered records in my data bank. I have applied this logic to several of my reports and am happy that I can include the no. of records which have been filtered in the reports. Again thanks a lot. It will please me to know that you have received this. Send me a brief note.

              Comment


                #8
                Great! I'm glad you got it going.

                -- t

                Comment


                  #9
                  Tom,
                  Now that I have the procedure down to count the no. of records that have been filtered to include in reports I have now been trying to give them a line no. in my reports. That is starting at 1 and ending with the no. of records in the report. However, after looking all the functions available in the home addition I have not come up with anything. I think the main problem I have is not knowing how to properly assign arguements for the function. It appears that the function "every-record-list" might do what I want but i cannot assign arguements that will execute it. I'm sure you have detected that I am rather inexperienced in programming with alpha 5 which is true. However I do have some experience in Basic and Fortran But that is not helping me much in Alpha 5. If you can give me any help I would appreciate it.
                  Cyrus At [email protected]

                  Cyrus

                  Comment


                    #10
                    Cyrus,

                    It's best to put new questions in a new topic. Will get better exposure, and will be easier to find later on.

                    You might try putting a new calc field in the detail band (region) of your report layout. This field would display the current value of the mrecno() function. Read the docs to see what the function will produce.

                    -- tom

                    Comment

                    Working...
                    X