Hello,
In the past, in our tblProjects, we used the field name "CBUID" and Data Type is smallint. Now, we also have RegionID. CBUID is basically no longer needed.
However, if a person tries to add a new project into our SQL Server Database using Forms in MS Access and if I do not include the field name, "CBUID" on the form so it can be selected, they will receive an error message , "CBUID can not be null...."
I checked tblProjects Design View and CBUID field name is ok to be NULL; however, I do not know why when adding a new record, if CBUID is NULL, we'll receive error message that it cannot be NULL.
I even deleted this field name CBUID from tblProjects. Then tried to add a new record again; however, I still receive the same error message.
I was thinking there might be some integrity contraints like PK and FK. Therefore, I checked sysforeignkeys. It is FK if the Data Type is smallint.
All that being said, CBUID is FK because the Data Type is smallint. I changed it's Data Type from smallint to varchar so it is no longer a FK ; however, I still can not add a record when CBUID is NULL.
Basically, I tried:
1. Deleted CBUID from the table
2. Change the Data Type to somthing else.
However, I still receive the same error message that CBUID can not be NULL when I tried to add a record to this table without selecting CBUID.
Any help is greatly appreciated.
In the past, in our tblProjects, we used the field name "CBUID" and Data Type is smallint. Now, we also have RegionID. CBUID is basically no longer needed.
However, if a person tries to add a new project into our SQL Server Database using Forms in MS Access and if I do not include the field name, "CBUID" on the form so it can be selected, they will receive an error message , "CBUID can not be null...."
I checked tblProjects Design View and CBUID field name is ok to be NULL; however, I do not know why when adding a new record, if CBUID is NULL, we'll receive error message that it cannot be NULL.
I even deleted this field name CBUID from tblProjects. Then tried to add a new record again; however, I still receive the same error message.
I was thinking there might be some integrity contraints like PK and FK. Therefore, I checked sysforeignkeys. It is FK if the Data Type is smallint.
All that being said, CBUID is FK because the Data Type is smallint. I changed it's Data Type from smallint to varchar so it is no longer a FK ; however, I still can not add a record when CBUID is NULL.
Basically, I tried:
1. Deleted CBUID from the table
2. Change the Data Type to somthing else.
However, I still receive the same error message that CBUID can not be NULL when I tried to add a record to this table without selecting CBUID.
Any help is greatly appreciated.