Results 1 to 8 of 8
  1. #1
    Hello1 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    32

    Error in tables

    Hello there.
    As u gonna see in the next pictures, im not able to make any records in the table "employee". I guess the relationship i made between "employee" and "personal data of employee" is wrong. So my question is, is there a way to connect these 2 tables or should i put everything from "personal data of employee" in "employee" table. Im a newbie in this















    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Your images are not showing for me. Did you just post a link to a fileshare site? I am blocked. Images can be embedded in post.

    Does [personal data of employee] have multiple records for each employee? If not, can probably just be one table.
    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.

  3. #3
    Hello1 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    32
    Click image for larger version. 

Name:	1.JPG 
Views:	6 
Size:	93.4 KB 
ID:	22588Click image for larger version. 

Name:	2.JPG 
Views:	6 
Size:	107.1 KB 
ID:	22589Click image for larger version. 

Name:	3.JPG 
Views:	6 
Size:	33.5 KB 
ID:	22590Click image for larger version. 

Name:	4.JPG 
Views:	6 
Size:	22.3 KB 
ID:	22591

    I didnt understand ur question really, pretty unexperienced in this yet
    Hope u can understand it from the pictures which i uploaded directly now.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Sounds like you need a better understanding of relational database principles. Maybe this tutorial site will help http://www.rogersaccesslibrary.com/

    Again, what is nature of the table relationship (1-to-1, 1-to-many, many-to-many)? Will Personal have multiple records for each employee?

    Regardless, the table link is wrong. Should be saving ID_Employee PK value as a FK in Personal.
    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.

  5. #5
    Hello1 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    32
    Hey june, thanks again.
    The relationship was 1 to many but i tried 1 to 1 and got same. "Will Personal have multiple records for each employee" I want that each employee has his personal info in the personal stuff table. Actually because i didnt want to put all the records in employee table (to have it more clear), i wanted to make few lets call them "sub tables" of the employee. So i wanted for example to make a table similar to Personal, one which has records about the employee job (salary, insurance, hire date...).
    Here a new one, i exchanged job which a mistake in the first picture.
    Click image for larger version. 

Name:	5.JPG 
Views:	6 
Size:	46.8 KB 
ID:	22595Click image for larger version. 

Name:	6.JPG 
Views:	6 
Size:	94.6 KB 
ID:	22596Click image for larger version. 

Name:	7.JPG 
Views:	6 
Size:	93.3 KB 
ID:	22597

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Unless you care about history of employee phone/address/email, I would not split the employee personal info into two tables. Employee and Personal Details should be one table.

    Assuming employee could have more than one job (promotions, rehires) then you need another (junction) table that documents this job history, something like:

    tblEmpJobs
    EmployeeID (foreign key)
    JobID (foreign key)
    EffectiveDate
    TerminationDate

    This table is the link between employees and jobs. Did you review the tutorial link I referenced? I suggest it would be a valuable exercise before you continue db development.


    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention - and that means no () in field names.
    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.

  7. #7
    Hello1 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    32
    I did take a look but no idea where to start
    Thanks for the advices, i might try the junction.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Why not start with the Tutorials link on Roger's page?
    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.

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

Similar Threads

  1. Error : Can not open any more tables
    By riddhi in forum Access
    Replies: 3
    Last Post: 10-15-2011, 07:01 AM
  2. Error viewing SQL tables
    By forrestapi in forum SQL Server
    Replies: 6
    Last Post: 10-12-2011, 03:36 PM
  3. Deleting error tables
    By bcurrey in forum Programming
    Replies: 3
    Last Post: 08-23-2011, 05:39 PM
  4. Error: Could not delete from specified tables
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-03-2011, 02:07 PM
  5. error between two tables
    By platinumlofts in forum Access
    Replies: 1
    Last Post: 03-23-2010, 09:13 AM

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