JSchumacher
Technical User
Hi,
I recently converted a db from 97 to 2k. I have a combo box with the RowSource modified in the code as different option groups are changed. One of the statements returns a Short Date and another returns the Year using a DatePart function to find it. The combo box worked fine in 97, but now when the RowSource is changed and a selection is made on the new data, an error comes up. "The value you entered isn't valid for this field. You may have entered text in a numeric field or a number that is larger than the FieldSize setting permits." It doesn't matter if I go from Year to Date or from Date to year. It will work the first time I use it, but once the RowSource is changed, it won't. I tried using Format instead of DatePart and using CInt on the date, but still have the same error. Any ideas on what the problem is?
Thanks!
Judie
I recently converted a db from 97 to 2k. I have a combo box with the RowSource modified in the code as different option groups are changed. One of the statements returns a Short Date and another returns the Year using a DatePart function to find it. The combo box worked fine in 97, but now when the RowSource is changed and a selection is made on the new data, an error comes up. "The value you entered isn't valid for this field. You may have entered text in a numeric field or a number that is larger than the FieldSize setting permits." It doesn't matter if I go from Year to Date or from Date to year. It will work the first time I use it, but once the RowSource is changed, it won't. I tried using Format instead of DatePart and using CInt on the date, but still have the same error. Any ideas on what the problem is?
Thanks!
Judie