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

Formulas with Dates

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

    Formulas with Dates


    We have four fields with dates in them; ex. 09/01/1999. We want to have a field in our report that will indicate when the last evaluation was done by giving us a response of either a 3 or 6. In our database of 400, a person may have the following fields:
    08/01/1990
    02/01/1993
    07/01/1996
    09/01/1999
    We need a new field that will show that this person will need a 6 year evaluation in the year 2002.
    Another person may only have one field:
    01/01/1999
    This person would need a 3 year evaluation in the year 2002.

    In other words, we are only dealing with 1996 and 1999, but these dates may appear in any of the four fields.

    Please describe the formula we would need for our report.

    Thank you.
    Helen Forge

    #2
    RE: Formulas with Dates

    Helen,

    If this is not a set but a flat file, I would say your structure is all wrong.

    Please state if this is a set or a table that you are working with.

    Dave

    Comment


      #3
      RE: Formulas with Dates

      Dear Dave,
      We are dealing with Alpha5,v4 for the first time and we believe that we working with a flat file. We did not set up a set or a table.

      We had Alpha 4, v6 and transferred the files to the updated version. These files automatically went into the new data base.

      We will be grateful for any help you can give us.
      Thank you.
      Helen Forge

      Comment


        #4
        RE: Formulas with Dates

        Hi Helen,

        You are going down the wrong road. Make a U turn and go back to the starting line.

        You will need at least 2 tables and only ONE date field. As an example; Table1 will contain the person name and other data pertinent to the person such as address, phone, and Person_ID etc. Table2 will contain Person_ID, evaluation date and other pertinent data dealing with the evaluation.

        The two tables are linked together by the Person_ID field and each person will have one record in the parent table (Table1) and any number of records in the child table (Table2), which each record representing an evaluation which occurred on a specific date, the evaluation date.

        Now, a calculated field can be set up to look at the evaluation date field and give you the date 6 months from the date in the evaluation field.

        Work on constructing the tables and the set first. Then the Board can help you get the calculated field set up.

        Note: Add the Person_ID field to the existing table and then duplicate it; data, indexes and all. Now you need to delete fields from table1 (Parent table) which will be used in the child table (Table2) and delete the fields in the child table which will be used in the parent table. You need to keep the Person_ID field in both tables as this is the linking field.

        Try this road and you'll son see how much smoother it will be.

        kenn
        TYVM :) kenn

        Knowing what you can achieve will not become reality until you imagine and explore.

        Comment


          #5
          RE: Formulas with Dates

          If you stay with the flat file, look at the report in the attached zip file. It contains 2 calc fields.

          DATEYEARS

          cyear(date1)+" "+cyear(date2)+" "+cyear(date3)+" "+cyear(date4)

          EVALDUE

          if(*any(Calc->Dateyears,"1999"),"3",if(*any(Calc->Dateyears,"1996"),"6","0"))

          Comment


            #6
            RE: Formulas with Dates

            Helen,

            Ken gave you very sound advice. I too switched from a4v6 and had a learning curve.

            Anytime you find yourself needing to add a field to extend your information on the same record, you are probably a candidate toe create a set. This was true in a4v6 also.


            Dave

            Comment


              #7
              RE: Formulas with Dates

              Dear Gary,
              Thank you very much for your assistance in helping us with our Formula question. The problem is resolved for which we are grateful. Now we are addressing a new problem:

              How do we append one record from one database to a different database?

              Thank you.
              Helen Forge

              Comment


                #8
                RE: Formulas with Dates

                Dear Ken,
                I appreciated your assistance in helping us with our Formula question. The problem is resolved for which we are grateful. Now we are addressing a new problem:

                How do we append one record from one database to a different database?

                Thank you and a Happy New Year!
                Helen Forge

                Comment


                  #9
                  RE: Formulas with Dates

                  Dear David,
                  Thank you for assisting us with our Formula question. The problem is resolved for which we are grateful. Now we are addressing a new problem:

                  How do we append one record from one database to a different database?

                  Thanks; Happy New Year!
                  Helen Forge

                  Comment


                    #10
                    RE: Formulas with Dates

                    helen:

                    use the append operation. Just identify the unique record in the transaction file.


                    I hope this helps.

                    bob adler

                    Comment


                      #11
                      RE: Formulas with Dates

                      Helen,

                      You have only one database with one table (flat file)(Tables were formerly called databases). If your database has more than one table, it makes no sense to continually append data to another table. Granted, you will have to append to start with but beyond that, there is no need to append when you can link the tables in a set and the data is automatically "appended".

                      To specifically answer your question, click on the Operations tab and then right click anywhere on the white part of the screen and select new and then append. Follow the Genie. Although some things could have been worded better, it's really very straight forward.

                      kenn
                      TYVM :) kenn

                      Knowing what you can achieve will not become reality until you imagine and explore.

                      Comment

                      Working...
                      X