A form with buttons to store actions and dates?

mercredi 8 avril 2015

Hi, still an absolute beginner,



Suppose I need a database with customers, able to store: what different events, were performed on what date.

So let's say possible actions are: a customer called, emailed or visited.

(note, it might be possible that a customer both called, emailed and visited on the same day)

Should I start with four different tables for: customers, called, emailed, visited? Or would the three actions just go into one table?



Another aspect that I don't understand at all yet is how to proceed with the dates.

Should I create another table with a long list of possible dates for the coming x-years?



To give you some idea about I would like it to work:

I am thinking about creating a form with buttons behind the terms 'called', 'emailed' and 'visited'. When one of those buttons is pressed, I want an entry for that action, day and customer entered in the database.

So that later on I could e.g. look up on what day how many customers called, etc. etc.



Some hints please in what direction I should go to try to accomplish this?



PS,

I am posting this in the 'Forms' discussion since I want to have the interface as a form. Is that o.k. or should I post such questions in another discussion topic?

A form with buttons to store actions and dates?

0 commentaires:

Enregistrer un commentaire

Labels