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

Complex conditional lookup

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

    #46
    Re: Complex conditional lookup

    Hi Gabe,

    Thank you for the sample, however, I think you missed the plot here.

    What lookup do you get if the customer is Residential? The way you have given the sample, if a residential customer is selected the lookup still shows commercial prices.

    Now you can see why a working sample is better than a video clip which only shows part of what is happening.

    Please see thumbnail.
    Last edited by Keith Hubert; 04-26-2009, 04:01 PM.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


      #47
      Re: Complex conditional lookup

      I didn't really tackle commercial vs residential. Didn't even know that was an issue and it shouldn't be, it's a very minor modification. Where Scott was stuck is in how to incorporate Service in line items and how to obtain it's value based on the area.

      Comment


        #48
        Re: Complex conditional lookup

        Gabe,

        You are right, commercial vs residential, was not specified as an issue, it was implied in the title of the thread. It seemed clear to me that as there were these two items, it was going to be a issue that Scott would need help with.
        Where Scott was stuck is in how to incorporate Service in line items and how to obtain it's value based on the area
        David had this covered with his posted sample.

        With all the great help you have given in the past, I'm sure this would have been very straight forward for you.
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


          #49
          Re: Complex conditional lookup

          Hmmmm!
          I thought what was implied in the title is the "complexity" of looking up for products, then looking up for service and the amount based on the area. That's how I read it. That said, what is it you want to see happen if it was commercial vs residential?
          If there is a different rate for each, all you have to do is add an If statement to calculate the price. The tables Scott offers do not differentiate between commercial vs residential.

          Comment


            #50
            Re: Complex conditional lookup

            Hi Gabe,

            Looking at the Product table, I see Commercial and RetailPrice fields.

            Personally I would have one field and have the data as either Com or Ret (Residential).

            Maybe this is what everyone has overlooked.
            Regards
            Keith Hubert
            Alpha Guild Member
            London.
            KHDB Management Systems
            Skype = keith.hubert


            For your day-to-day Needs, you Need an Alpha Database!

            Comment


              #51
              Re: Complex conditional lookup

              I don't want to speculate and go on a fishing expedition.. he also has a field IsSenior. Does the rate vary based on that? There is yet another field for discount.

              Unless the question is overtly asked, I am not sure if I want to tackle any of that.

              Comment


                #52
                Re: Complex conditional lookup

                Hey there!

                I guess you could look at it both ways.

                COMPLEX:
                1. consisting of two or more related parts.
                2. not simple; involved or complicated.

                The meaning I had in mind was the first definition.

                -------------------------------

                Keith -

                Personally I would have one field and have the data as either Com or Ret (Residential).
                Could you explain what you mean here? I don't see what you're driving toward.

                ---------------------------

                I really like what Gabe did as well as what DavidK did. From what I can see both accomplish basically the same task just in a different manor.

                I think I can get one or the other to work.

                Comment


                  #53
                  Re: Complex conditional lookup

                  Gabe -

                  Yes they do give a senior discount. That is just a straight percentage off of the total invoice.

                  I never said these guys were easy. Just trying to do what they want me to. They know their business better than me but I think they make things much more difficult on themselves than they need to.

                  Comment


                    #54
                    Re: Complex conditional lookup

                    Yep, point taken.

                    However, I would have regarded those items as part of the final calculation of the Invoice.

                    So, we are still at the point where the user cant get a conditional lookup based on the type of customer.

                    Can you show Scott how to do that? Or, would you recommend that he changes the table structure and filter the table accordingly.
                    Regards
                    Keith Hubert
                    Alpha Guild Member
                    London.
                    KHDB Management Systems
                    Skype = keith.hubert


                    For your day-to-day Needs, you Need an Alpha Database!

                    Comment


                      #55
                      Re: Complex conditional lookup

                      Keith:
                      I am at loss here.
                      Where is the rate for residential vs that for commercial? In what table and in what field?

                      Comment


                        #56
                        Re: Complex conditional lookup

                        Gabe,

                        Product table. Commercial and RetailPrice fields.
                        Regards
                        Keith Hubert
                        Alpha Guild Member
                        London.
                        KHDB Management Systems
                        Skype = keith.hubert


                        For your day-to-day Needs, you Need an Alpha Database!

                        Comment


                          #57
                          Re: Complex conditional lookup

                          Kinda odd that the field for the commercial rate is named commercial while the one for residential is named retail, nonetheless it's a simple fix and no you do not need more than one table (Products). I will get back with you shortly. My business week starts 5:00 pm Sunday.

                          While we are at it, what and where is the senior discount?
                          And can the quantity for the service be more than 1?

                          Comment


                            #58
                            Re: Complex conditional lookup

                            Originally posted by G Gabriel View Post
                            Kinda odd that the field for the commercial rate is named commercial while the one for residential is named retail, nonetheless it's a simple fix and no you do not need more than one table (Products). I will get back with you shortly. My business week starts 5:00 pm Sunday.

                            While we are at it, what and where is the senior discount?
                            And can the quantity for the service be more than 1?

                            Goodness -- I didn't mean to create such a monster.

                            As I mentioned prevoiusly the client is doing everything off of spread sheets an written charts and papers. I'm trying to just normalize them as best I know how. That is the reason behind the (miss)nameing convention. The only common threads that I can find are area and inconsistancy.

                            Right now the 'senior' designation is in the customer table. They give a 5% discount to the seniors. I figured that that would be a calculation at print time. Just like tax. I didn't figure I needed to store that in the tables. Is that thinking incorrect? If so where would it best be stored - Invoice header?

                            As far as Service quantity - yes, they could charge for more than one application at the time of invoicing.


                            I really do appreciate all of your help.

                            Scott

                            Comment


                              #59
                              Re: Complex conditional lookup

                              Just received a call from a friend in Canada diagnosed with Cystic Adenoma of the Pancreas and asking my opinion whether she should go ahead with the surgery?

                              Any surgeons in the house?

                              This will take a little more priority over the lawn business but I will work on that and get back with you later.

                              Does the senior discount apply for both products and service?

                              Comment


                                #60
                                Re: Complex conditional lookup

                                Originally posted by G Gabriel View Post
                                Just received a call from a friend in Canada diagnosed with Cystic Adenoma of the Pancreas and asking my opinion whether she should go ahead with the surgery?

                                Any surgeons in the house?

                                This will take a little more priority over the lawn business but I will work on that and get back with you later.

                                Boy I'm sure sorry to hear that. Hope everything works out well. Sorry I can't help you on that one.



                                Does the senior discount apply for both products and service?

                                I'm guessing here but I believe is is on services only. I'll ask and post back tomorrow.


                                BTW - Did I answer the design faux pas question correctly or was it the fact that the products was even in the set in the first place?

                                Off and running myself. Back at it tomorrow.

                                Scott

                                Comment

                                Working...
                                X