Hi - I've checked the FAQs, and haven't found the answer for this problem. I've spent HOURS trying to resolve it !
I have a search form, with an option frame with several option boxes representing different fields to use for a search criteria. Once this option frame is updated, the RowSource for the combo box is set accordingly.
The combo box can handle strings, numeric values, or dates, and the SQL source is set on the fly using the proper delimiters according to the data type. This works great, except for one glitch.
The combo box RowSource is always updated correctly when the first criteria is selected. If it is a string, and then the next criteria is a numeric value, the combo box updates properly.
However, if the first criteria selected when the form is opened, is a numeric value, I get a problem when selecting a string after that. I get RTE 2113: "The value you entered isn't valid for this text". Even though the combo box RowSource is correct, and if you look at the list, it shows the correct values. But if you select one of these, you get the error, because it still thinks it's looking for a numerical value ?!?!
I can't even get into design view without deleting the text in the combo box. I have even set the RowSource to "" when switching from one criteria data type to the next. What makes it even stranger is, if I start with a string value, then I can toggle back and forth between numerical, date, and string values as often as I want with NO problems. It only happens when a numerical value is the first criteria selected.
If anyone has suggestions, I would greatly appreciate.
Thanks!
I have a search form, with an option frame with several option boxes representing different fields to use for a search criteria. Once this option frame is updated, the RowSource for the combo box is set accordingly.
The combo box can handle strings, numeric values, or dates, and the SQL source is set on the fly using the proper delimiters according to the data type. This works great, except for one glitch.
The combo box RowSource is always updated correctly when the first criteria is selected. If it is a string, and then the next criteria is a numeric value, the combo box updates properly.
However, if the first criteria selected when the form is opened, is a numeric value, I get a problem when selecting a string after that. I get RTE 2113: "The value you entered isn't valid for this text". Even though the combo box RowSource is correct, and if you look at the list, it shows the correct values. But if you select one of these, you get the error, because it still thinks it's looking for a numerical value ?!?!
I can't even get into design view without deleting the text in the combo box. I have even set the RowSource to "" when switching from one criteria data type to the next. What makes it even stranger is, if I start with a string value, then I can toggle back and forth between numerical, date, and string values as often as I want with NO problems. It only happens when a numerical value is the first criteria selected.
If anyone has suggestions, I would greatly appreciate.
Thanks!