Hello,
Over the last two days an error has developed in the Access 2003 application I am developing. I can't seem to get rid of it, or work my way around it.
Essentially I have a Form that has two modes, browse data and add new record.
When in browse mode, it draws in data from several tables. It took me a while, but I finally worked out a great huge SELECT statement to do this, using several LEFT JOIN clauses.
However, it seems that you can't add a record when there are Left Joins.
So in the Add new record mode, I change the Form.RecordSource to a simple SELECT statement -
"SELECT * FROM [Parts Data]"
and I Lock and remove the ControlSource of all the controls that are not Bound directly to this [Parts Data] table. Then I can successfully make changes on the form (I only want to edit the fields bound to the [Parts Data] table).
Then I try to Save the record (or even abort about by a DoCmd.RunCommand acCmdUndo) and then the problem occurs:
First I save the record, or Undo as the case maybe.
Secondly I restore the Form RecordSource to the original great huge SELECT statement.
Finally, I reset the controls so that they are once again Bound.
However, the instant I change the Form.RecordSource back to the huge SELECT statement, I am hit with Error number 2107:
The value you entered does not meet the validation rule defined for the field or control
None of my controls have any Validation Rules defined.
As far as I can tell, none of the underlying tables have Validation Rules defined either.
Any suggestions as to what is causing this error?
Over the last two days an error has developed in the Access 2003 application I am developing. I can't seem to get rid of it, or work my way around it.
Essentially I have a Form that has two modes, browse data and add new record.
When in browse mode, it draws in data from several tables. It took me a while, but I finally worked out a great huge SELECT statement to do this, using several LEFT JOIN clauses.
However, it seems that you can't add a record when there are Left Joins.
So in the Add new record mode, I change the Form.RecordSource to a simple SELECT statement -
"SELECT * FROM [Parts Data]"
and I Lock and remove the ControlSource of all the controls that are not Bound directly to this [Parts Data] table. Then I can successfully make changes on the form (I only want to edit the fields bound to the [Parts Data] table).
Then I try to Save the record (or even abort about by a DoCmd.RunCommand acCmdUndo) and then the problem occurs:
First I save the record, or Undo as the case maybe.
Secondly I restore the Form RecordSource to the original great huge SELECT statement.
Finally, I reset the controls so that they are once again Bound.
However, the instant I change the Form.RecordSource back to the huge SELECT statement, I am hit with Error number 2107:
The value you entered does not meet the validation rule defined for the field or control
None of my controls have any Validation Rules defined.
As far as I can tell, none of the underlying tables have Validation Rules defined either.
Any suggestions as to what is causing this error?