Vomiting and diarrhoea are very common in dogs. Both are symptoms of other conditions rather than diseases in their own right and there is a vast range of dog diseases in which diarrhoea and/or vomiting may occur. In many cases the problem may be successfully treated without ever pinpointing the actual cause. However, the information that you give your vet may be vital in deciding whether the case is serious enough to need further detailed investigations.
Both diarrhoea and vomiting occur as short lived (acute) conditions lasting 1-2 days which will often clear up on their own, and as long-term (chronic) problems which may be more serious. If your dog has vomiting or diarrhoea but does not appear to be in distress or be losing weight, all you may need to do is to withhold all food for a day and then give your dog small amounts of cooked fish, chicken or some other food which is easily digested. Make sure clean fresh water is available. If the problem persists or stops but then recurs you should make an appointment to see your vet.