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

another simple question from a beginner

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

  • another simple question from a beginner

    I'm back again with another simple question. I am having a horrible time trying to locate material on simple procedures that I can't figure out how to do. I try to search this forum, but I must be "search word" illiterate, because my searches pull up everything but what I am looking for. Any tips? Here is my current problem. I have a table which contain 3 fields (among others) for city, st and zip. In field rules under city, to speed up entry, I set up a lookup table using the current table as the lookup table to fill in the city, st and zip fields. It works fine except that there are lots of entries from each city and there is no place to mark "unique records only". I know I can use the "previous values", but I would have to select from 3 different lookup tables to get city, st and zip. Is there a filter expression to prevent duplicate records being shown in the lookup box? Or am I going about this the wrong way?

    Thanks,
    Bobby

  • #2
    RE: another simple question from a beginner

    FWIW here's what I would do:

    I would build a separate table containing only the zip code, city, and state. In this table I would place every combination of city, state and zip I would ever use in the main table. This table would be used only as a lookup table. Then in the main table I would lookup the zip code in the lookup table and have that lookup fill in the city and state. You can even set alpha to let the user fill in new combinations in the lookup table as they occur.

    Comment


    • #3
      RE: another simple question from a beginner

      I would create an index on the database and limit the index to unique only. Use this index to link for the lookup. It should limit the records to unique only.
      Jeffrey Wolfe

      Open Source Solutions
      Phone: (757) 819-4230
      Fax: (888) 300-5994
      E-mail: jeffrey-wolfe@verizon.net

      Comment


      • #4
        RE: another simple question from a beginner

        Bobby,

        Ohlen is right; you should set up a ZIP, City, State table just for a general purpose lookup. Keep in mind that this kind of data has certain characteristics to which you will need to pay some attention.

        First, it's in hierarchical order: cities within states, ZIPs within cities, so you can have several cities in each state but only one state per city, etc. As a result, if you want to be sure that your table is dupe-free, you will want to check on the ZIP field only.

        Now it may be that in your table you have duplicate ZIPs with different, yet correct, cities. In that case you have two choices. One is to pick the most "accurate" city-ZIP combo and trash the others; or correct the table by adding a vanity city field(s)(the USPS allows up to two) and add the different cities to the same ZIP's record. You can later choose whether or not you want to use the USPS preferred city (the most "accurate") or the vanity city when you either use the table as a lookup or post from it when correcting a list accross the board.

        So what's a vanity city? Santa Barbara is a good example. If you live in the northern end of Santa Barbara you live in Goleta. If you live at the southern end, you might well be living in Montecito. The USPS prefers that addresses in these areas use Santa Barbara (Goleta may now be separate), but beacause they are all legitimate names for their respective areas, all are legal.

        Montecito is a very "prestigious" high-end area; the kind that if you live there, you want everyone to know about it, hence the term "vanity" address or city. Some customers can get powerful offended if you were to address your mail piece to them using the more generic USPS preferred city rather than where they wish to be known as living. It's also true for many businesses that want a prestigious address on their letterhead (like me!).

        If all you want is to put the right city and state with the right ZIP, the first alternative would probably be best.
        Incidentally, the USPS will sell you a table of all the current US ZIPs with their appropriate cities, vanity cities and states. It might make things easier and faster.

        Hope that his was of some help...

        Regards,

        Geoffrey Hollander

        Comment


        • #5
          RE: another simple question from a beginner

          why not just use the zip code file that comes on the alpha disk - that's all i have ever used. you can delete the zips for states that you don't need. And use field rules to fill in city-state-county
          Cole Custom Programming - Terrell, Texas
          972 524 8714
          martin_w_cole@msn.com

          ____________________
          "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

          Comment


          • #6
            RE: another simple question from a beginner

            Martin,

            That's a great idea, especially since the USPS version runs about $300 (for a 1-year quarterly subscription).

            Whether or not one decides to use Alpha's supplied ZIP table or the USPS's depends on how current and accurate your database needs to be. If you want to regularly mail to these addresses, you might want the USPS version (and update your list {table] whenever a new one is issued) in as much as ZIPs are always changing.

            If you are an occasional mailer, you mailing house or letter shop will probably CASS code the file before presorting and that will correct most of those obsolete ZIPs.

            I know I'm picking nits, but I've delt with many clients who didn't think that this was particularly imoprtant, only to find it expensive and frustrating to correct later on.

            Regards,

            Geoff Hollander

            Comment


            • #7
              RE: another simple question from a beginner

              Thanks for your time guys.

              Bobby

              Comment


              • #8
                RE: another simple question from a beginner

                There are zip code dbf's available on the internet. Do a search. I got one about a year ago that I think is more up to date than the one with alpha. Not sure where I got it but it also has county info which is useful if you do anything by county. (we use it for sales territories). We do it basically as stated above. Set prompt order so after the name you go to zip code, the lookup will fill in the city and state. We still allow the cursor to go through the city and state fields so if there is some variation, which occasionally occurs, it can be changed manually. Or you can put skips on the city and state fields so once they are filled in you skip them to save time.

                Russ

                Comment

                Working...
                X