![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm sure this has come up for people before. I have two fields in one table that both refer to my users table. TakenByID EnteredByID Both of these refer to UserName in tblUsers. I am trying to set up relationships for the two fields. I made one for EnteredByID with no problem, but I get an error when I try to set one to TakenByID. I tried doing it in the opposite order as well (knowing this wouldn't work) and got the same error. ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]ALTER TABLE statement conflicted with COLUMN FOREIGN KEY constraint 'rel_tblPatients_tblUsers'. The conflict occurred in database 'dbname', table 'tblUsers', column 'UserLoginName'. |
![]() |
| Thread Tools | |
| Display Modes | |
| |