pruiz
Posts: 29
|
| Posted: 05/23/2005, 4:23 PM |
|
I have created a record grid that will be used to add employees. There are two fields that are hidden in the grid - employee_type and dept_id. I am able to type in a default value "Temp" and set the required option to yes in Data Properties, and my database will record "Temp" when the employee is added. However, if I try to set a default value for the dept_id as 1, with the correct format, and required set to "yes", and press add, I get an error message stating that the dept_id is required. If I change required to "no", the field ends up being null in the database.
Am i not able to create a default value in Data Properties to fill in a hidden integer field within a Grid?
|
 |
 |
Nicole
Posts: 586
|
| Posted: 05/24/2005, 2:50 AM |
|
Hello,
How exactly you set a default value, in Default Value property of a control? If you’re using Custom Insert make sure that dep_id field is included into insert sql statement.
_________________
Regards,
Nicole |
 |
 |
|