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

question on DATE

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

    question on DATE

    I have a from where the date field is filled by way of an expression DATE() And for that, it is not accessable during
    normal data entry on the form.

    Once a while, we do want to enter an old date.
    Can anyone suggest a way to accomplish this ?

    * I am thinking a radio buttom placed next to the DATE entry field on the FORM.. TO ask...

    * Enter today's date ?
    * Enter "PAST" Date ?

    And use the variable to determine which way to go ??

    Ken Tjia

    #2
    RE: question on DATE

    Instead of using the field rule to define the field as a calculated field, consider leaving it User Entered.

    Then on the Data Entry tab of field rules for this field, set default mode to "simple expression", and then set default value to date(). You may have to scroll down a bit to see these options.

    This will insert the current date when a record is entered, but will permit you to override the default later on if you wish.

    -- tom

    Comment


      #3
      RE: question on DATE

      Thank you Tom,

      That work well come to think about it.

      In a similar area... I am having a bid of challange related to MONTH & YEAR.

      Let me try to describe it carefully to see if you can help me..

      What I have here is a typical "REPAIR-SHOP" application.
      Where PARTS being consummed on the fly.

      Having collected 6 months of data. I am about to "have" to generate some report to show. (SUMMARY REPORT)

      The challange is the USE_BY_DATE field within the table would no doubt have entries range from anywhere in Jan to Jun 2000.

      So I created a field called "MONTH_YEAR)( CHARACTER 20 digits long) to combine the MONTH+YEAR together. The expression I used here

      CMONTH(DATE_OF_USE)+CYEAR(DATE_OF_USE)

      That work out extremely well and all conversion take place on the fly as we are entering the DATE info into the DATE_OF_USE field.

      Then I managed to create a perfect summary and display them in browse mode.... That work very also..

      BUT... The way the conversion taken place. all data in the month of April will be shown as "APRIL2000" etc..

      Because alpha treat is as a character. Sorting take place in which APRIL2000 always on top of the browse's line, follow by AUG1999 etc.. Sure make the viewing a bit uneasy.

      My first wish to see..

      PERIOD QTY

      JAN-2000 50
      FEB-2000 19
      MAR-2000 16 etc...

      But I think for best SORTING PURPOSE>>> I will compromise
      to see

      PERIOD QTY

      01-2000 50
      02-2000 19
      03-2000 16 etc....

      Can you help me ?

      Your assitance in about routine is greatly appreciated.

      Ken Tjia

      Comment


        #4
        RE: question on DATE

        Ken,

        I think you may want MONTH(DATE_OF_USE)+YEAR(DATE_OF_USE tyo give you a numeric sort order instead of character.

        Michael

        Comment


          #5
          RE: question on DATE

          Ken,

          You are better served sorting on the datevalue as follows

          LEFT(cdate(datevalue),6)

          This will sort the fields by year and month.


          Regards,

          Ira J. Perlow
          Computer Systems Design & Associates
          [email protected]
          Regards,

          Ira J. Perlow
          Computer Systems Design


          CSDA A5 Products
          New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
          CSDA Barcode Functions

          CSDA Code Utility
          CSDA Screen Capture


          Comment


            #6
            RE: question on DATE

            Ttried that already, but not accepting.

            I forgot what the error was... Just the CMONTH work so far.

            Ken Tjia

            Comment


              #7
              RE: question on DATE

              work very well..

              Now I got 200001,200002 etc..

              how can I get 2000-01
              2000-02 (feb 2000)
              2000-03 etc..

              Thank you

              Ken Tjia

              Comment


                #8
                RE: question on DATE

                Hi Ken,

                Sorry I missed you yesterday. Pretty busy here in Toronto.

                If all you want is to reformat your date in a report then
                left(cdate(datevalue),4)+substr(cdate(datevalue),5,2)
                will yield strings with the format 2000-01, 2000-02 etc.
                cyear(datevalue)+substr(cdate(datevalue),5,2)
                would probably be cleaner but I don't have my alpha5 documentation with me to verify the syntax.

                All of this is ok for calculations on reports and forms but you probably do not want to store the format in a field.

                Talk to you soon,
                Bill
                Bill Hanigsberg

                Comment


                  #9
                  RE: question on DATE

                  bill..

                  I am still in town and thanks a million for your help.
                  Well you know my cell... 416-936-1879

                  call me anytime...

                  Ken Tjia

                  Comment

                  Working...
                  X