Results 1 to 5 of 5
  1. #1
    Lasereyes24 is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    2

    is there a way to have 2 dates under a customer's name in Microsoft access

    I'm an intern student at a company that does both wiring and aircon services. The job that they gave me was to make a database for them. I don't have any experience in anything related to databases.


    So, I started to look up videos and stuff to at least learn a bit about databases and make something that works and I made it after 1.5 months of learning.


    in the database that I created,


    I have 1 table (CustomerDetailsT):


    CustomerID (pk)


    CustomerName


    PhoneNumber


    Address


    Aircond (type and model of ac,ex: WM daikin 1.0HP)


    AcDetails (what has been done for the ac.)


    Others (yes/no) (Wiring, installing a fan and so on)


    WhatHasBeenDone (shows what has been done for others)






    Then 3 queries (CustomerOthersDetailsQ, CustomerAcDetailsQ, CustomerDetailsQ).**CustomerAcDetailsQ** has *CustomerName, PhoneNumber, Address, Aircond* and *AcDetails*. **CustomerOthersDetailsQ** has *CustomerName, PhoneNumber, Address, Others,* and *WhatHasBeenDone*.**CustomerDetailsQ** has *CustomerID, CustomerName, PhoneNumber* and *Address*


    And 1 form with 3 subforms.
    it's a search form, which would search for customers as we're typing in their name/phone number and it will show what has been done for the customer.


    With this, I have created what the company wants, but now they want to add dates. Dates which would show when we have done something for a customer. Dates for Aircond and the Others stuff.

    for example, Customer A needs the ac in his house to be repaired on 3.4.2022. So, this info would then be updated in the customer details table and then it would show in the customer search form. After that, Customer A faces a problem with his ac again and this time its the wiring for the ac and he wants it to be done on 5.5.2022.


    I've tried with what I know and it didn't work. tried searching it on youtube and google, but still couldn't find it.


    how can I go about doing this?. I have tried having separate tables for each service, but it became a hassle when I wanted to create a new customer...






    [1]: https://i.stack.imgur.com/mtrmC.png [The Customer search form] [1]: https://i.stack.imgur.com/A3Y9d.png [example of a customer that has ac installation] [1]: https://i.stack.imgur.com/dsGL5.png [example of a customer that has both ac and wiring done]


    I've posted the same thing in stack overflow and was told that the question is suitable in stack overflow and that access forums would be the better place so i came here.

  2. #2
    Join Date
    Apr 2017
    Posts
    1,686
    You can't do this effectively with a single table! As a minimum, you need:
    tblCustomers: CustomerID, CustomerName, ...;
    tblServices: ServiceID, ServiceName, ...; (this table defines all services like e.g. Aircond, Wiring, etc.);
    tblCustomerServices; CustomerServiceID, CustomerID, ServiceID, ServiceDate, ...

  3. #3
    Lasereyes24 is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    2
    is there anything that I need to do/that needs to be done to database besides changing up the tables?

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,568
    As previously stated you need to change the design of your database.

    1 Customer can have Many Services which means more than 1 table.

    You need to bite the bullet and start again.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    orange's Avatar
    orange is online now Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,728
    is there anything that I need to do/that needs to be done to database besides changing up the tables?
    Yes. You have jumped over a major step --design.
    If I can make an analogy- someone has said build me a house. Your background gives you familiarity with a 1 room log house. And you have built it to the best of your ability and knowledge. Now,after you have built the log house, that someone says -oh the house needs 4 floors and 6 apartments on each floor. We need room for 75 people. Sound familiar?

    The key is to get a statement of requirements. What is really required and expected? You need answers to questions like who, what, where, when, why, how much and how often to identify the scope of the project/database and its proposed usage.

    Here is a link to a few tutorials from RogersAccessLibrary. If you work through the tutorials you will experience the process of designing tables and relationships to support a business process. Each tutorial should take 45 min to 1 hour. Each tutorial has a business definition, a problem statement, and solution.

    For practical experience / learning of tables and relationships spend 45-60 minutes and work through one or two of these tutorials from RogersAccessLibrary.
    ZYX Laboratories ***recently added
    Class info system
    Catering Business
    Widgets

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 06-02-2022, 03:39 PM
  2. Replies: 2
    Last Post: 01-15-2018, 07:46 PM
  3. Replies: 13
    Last Post: 10-06-2015, 09:12 AM
  4. Replies: 5
    Last Post: 05-03-2014, 02:03 PM
  5. Replies: 6
    Last Post: 12-11-2013, 09:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums