K
Keith Willcocks
I wish to insert the contents of a field into a text box and display it.
The field in every case is a text string of a dozen or so characters. I am
using DAO 3.6 to run my database. It is written using MS Access 2002.
I have the code:
textbox1.setfocus
textbox1.text = RecordSetName!fieldname
This code is working perfectly throughout another application but on this
occasion I get this error message for all the text boxes involved:
"Run-time error '2115'
The macro or function set to the BeforeUpdate or ValidationRule
property for this field is preventing Microsoft Access from saving the
data in the field."
In fact both of these items in the text box properties are empty and despite
the message the data appears in the textbox but obviously the application
ceases to run. Comparing the textbox properties with those in the
application that work I can find no differences other than a change of font
specifications.
Can anyone advise as to what may be causing this problem please?
The field in every case is a text string of a dozen or so characters. I am
using DAO 3.6 to run my database. It is written using MS Access 2002.
I have the code:
textbox1.setfocus
textbox1.text = RecordSetName!fieldname
This code is working perfectly throughout another application but on this
occasion I get this error message for all the text boxes involved:
"Run-time error '2115'
The macro or function set to the BeforeUpdate or ValidationRule
property for this field is preventing Microsoft Access from saving the
data in the field."
In fact both of these items in the text box properties are empty and despite
the message the data appears in the textbox but obviously the application
ceases to run. Comparing the textbox properties with those in the
application that work I can find no differences other than a change of font
specifications.
Can anyone advise as to what may be causing this problem please?