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

Help with queries

  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with queries

    I have enclosed the database I am working on. In the "Code" tab there is a script called "Query". For some reason when you run it the indx2.records_get() ends up as being zero. I am working with three queries on three seperate tables all in the same script. I dont know how they could be affectiing one another.

    Thanks Jamin

  • #2
    RE: Help with queries

    Jamin, the sample you uploaded contains no marked records in raw answers table. so the first query returns 0 records. Values from that query recordset are then used in the other queries. Since the raw answers recordset is empty I don't see how any of the others will work either.

    I also question the syntax in the second and third query filter expressions.

    I recommend you test them separately to verify that they work as you expect, before you combine them like this. In particular your use of the tbl.name_get() method is unusual and should be checked carefully. It's been my experience that if I write a filter expression that has no syntax errors but makes no sense Alpha Five will still run the query and return an empty recordset. My guess is that perhaps that's what's happening here.

    -- tom


    • #3
      RE: Help with queries

      Tom I thought the sample I sent was up to date. The one I have at home is. What your seeing will not work because it was in the midst of a rewrite. I will post the database when I get home.

      I did check the other two queries before inserting them. They ran perfectly. In fact I think there is a button on one of the forms called unmarked that runs them both.



      • #4
        RE: Help with queries

        I made the corrections to the one at work. The raw_answers table has records in it. Download this one. Look at raw_answers to see that there is indeed records in it. Then run the scipt "Query". When finished check raw answers. It will look like there are no recods in it. close the database down and reopen it. Check raw_answers. Take one of the queries out before the one that queries raw_answers. It seems to work fine. The first query orders the raw_answers table by ssn then by date_called. The second query takes the ssn from the quried raw_answers table and queries the patient table with it to find the patient record. The third query takes information from the queried raw_answers and patient tables and queries the answers table. The really long complex query for the anses table works fine. I have tried it numerous times as the query on the patient table.

        Thanks jamin


        • #5
          RE: Help with queries

          Jamin, the first query does not simply re-order the table. It filters out all which are not marked. Since no marked records were present, it filters them all out, which is why the table appears empty when you look at it. As I mentioned before, there are no marked records in Raw Answers, so the first query returns an empty recordset.

          -- tom


          • #6
            RE: Help with queries

            I see now that you've changed the first query filter so that the returned recordset is not limited to marked records.

            I suggest you check the third query filter expression. It seems to me that it will always return zero records because (if I'm reading it right!) it seems to be returning those records in Answers table which contain values in the date_called field which are both less than 'date_called' in Raw Answers table *and* greater than date_called in Raw Answers table. By definition any record which meets the first criteria will fail the second. Since both are required, none are returned.

            -- tom


            • #7
              RE: Help with queries


              THANK YOU EVER SO MUCH FOR TRYING BUT I AM A COMPLETE AND UTTER IDIOT!!!!!!! The first record queried in raw_answers is a patient record that is not filled in all the way. I thought it was and that makes me an IDIOT. Works just fine after that.

              Thanks again!


              • #8
                RE: Help with queries

                Great! I'm glad you got it figured out. I was swimming in the deep end of the pool trying to figure out your filter expressions...

                Thanks for letting me know it's ok to get out of the pool!

                -- tom


                • #9
                  RE: Help with queries

                  Easy on there, Jamin. If this makes YOU an IDIOT I had better kill myself now and claim the Darwin Award. This programming stuff is so easy when you get it right. I refer to my learning technique as 'amoeboid' as I crash into blank walls till I find the answer. Since I found this board I have grown fins. What I dream about are the wings...