Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770

    Identyfikator is set as primary key. Why would DokumentID also be set as primary key? DokumentID appears to be a foreign key, just as EmployeeID is a foreign key.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you orange, thank you June7.

    I corrected this primary key.

    orange - i will test my database, of course, i was asking for now if the relational based data model is quite good...

    Best Wishes,
    Jacek

  3. #18
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Jacek,
    I think you may have misunderstood my recommendation.

    Zalecałem utworzenie modelu danych, a następnie przetestowanie tego modelu przy użyciu przykładowych danych i scenariuszy oraz ich dopracowanie, dopóki nie zostaną spełnione wymagania. Zaoszczędzisz czas i będziesz miał plan, z którego możesz zbudować swoją bazę danych.
    Nie budujesz domu (fizycznie), a następnie zdecyduj, czy pokoje są prawidłowe.
    Zdajesz sobie sprawę, że kiedy powstają nowe samoloty, przed rozpoczęciem produkcji są często prototypy i modele. Sugeruję to samo z projektem bazy danych.

  4. #19
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you orange,

    No i understand your post very well - you don't have to write it in polish

    I was testing my database yesterday a lot.

    ------>

    I have a code which is sending emails from query (not implemented here yet but tested before).

    Question
    Case:
    User is sending reminders on 2017-07-20 for Document1 and Employee1 to the client. This date is stored as tbl_Documents.Email_reminder_date.
    After one week(2017-07-25) user wants to send another reminder to the same Employee1, same document1 and same client. We have already one date inputed
    in Email_reminder_date.

    So what now? I think that system should check if already reminder was sent and add new fresh reminder date attached to field tbl_Documents.Email_reminder_date for exactly the same docuement, employee and client....
    How to solve this technically? Did you have the same problem ?


    Thank you Guys for your help and support,
    Best Wishes,
    Jacek Antek

  5. #20
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi Guys,

    where i can put this lookup table? Do it separate or create somehow relationship ?

    Best wishes,
    Jacek

  6. #21
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi Guys,

    Please help,
    Best Wishes,
    Jacek Antek

  7. #22
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Jacek,

    Again, relationships and tables are derived from business rules/facts. If you have a clear description of the business, you can develop and test a data model with sample data and scenarios. Getting your tables and relationships designed to support your business is critical to database. If you don't get these designed and tested, or feel you can do this later, you are in for serious headaches, frustration and will be creating "work arounds" for this all too common design flaw.

    I can not over-emphasize how important this part is when developing a database to support a business.

    If you provide an English description with details, I'm sure you'll get more focused answers.

    Good luck.
    Last edited by orange; 07-27-2017 at 01:05 PM.

  8. #23
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    thank you orange very much,

    i am working on this constantly , testing, developing and trying to do my best.

    I will show the sample soon, maybe my model is good now (maybe? ), but
    i will have of course few question.

    My boss is chasing me and i will put the sample here as soon as possible

    Best Wishes,
    Jacek Antek

  9. #24
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Hi Guys, Hi Gurus

    As I promised i would to show you my final version of database which we talked about here.

    For all Access' lernerns i would like shortly explain how all these is working:

    1. I have front-end for users and back-end with tables.

    2. When user is opening the Access in Access Runtime instance - there is login form - thanks to it I know which data i can show for specific users.
    Here If user is Administrator automatically data for tables: tbl_Slow_Dokumenty, tbl_slow_spolki and tbl_Reminders_SAP are inputed.
    So macro using Delete, Append and Update Queries keeps always new data and refreshes older (data are uploaded from Excel's files - Excel files are upload from QlikView directly from SAP).

    3. Next, users can input a lot of documents at once. My tbl_Braki summary table is fullfiled by them using form InputForm.

    4. Administrator has the option to additionally send email for specific criteria (you can check the macro and button in project view).
    Email is sent as HTML body and macro is creating table within e-mail body.

    If you have any suggestions for it, any questions, please feel free to contact me,
    I will try to do my best to help you,

    Best Wishes,
    Jacek Antek
    Attached Files Attached Files

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-25-2016, 09:42 AM
  2. Replies: 9
    Last Post: 05-26-2016, 05:13 PM
  3. Create Relationships
    By snowboarder234 in forum Access
    Replies: 4
    Last Post: 03-20-2012, 04:27 PM
  4. Replies: 5
    Last Post: 09-17-2011, 12:44 PM
  5. Replies: 3
    Last Post: 06-07-2011, 05:05 PM

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