Hello friends,
In November another programmer posted this concern on the Access Forms forum, but no solution has been posted yet. I'm having the same problem, so I'll try this forum.
On a switchboard-type form I assign a rowsource to a single, unbound combo box depending upon the button clicked by the user. The combo box allows the user to choose from a list of retailers (text fields) in one case, a list of dates in another, and so forth. The rowsource is a different SQL query for each case.
When the form is first opened the code works no matter which button is clicked, allowing the user to open the appropriate form. Return to the switchboard and hit another button (assigning a new rowsource query), and up comes the error "the value you entered is not valid".
This did not occur in Access 97, but does pop up in when the db is run under Access 2000 and 2002 (I've converted the code). I do not wish to close the form, because it is the home screen for the application.
Depending upon the query, the data type of the bound column is either text, long int, or date/time. I've tried many things -- casting the non-text values to text fields, requerying, setting a dummy sql string as a rowsource in the properties box, compact, repair, decompile, recompile, praying to St. Isadore.
Can anyone shed light here?
most gratfully,
paradiso
In November another programmer posted this concern on the Access Forms forum, but no solution has been posted yet. I'm having the same problem, so I'll try this forum.
On a switchboard-type form I assign a rowsource to a single, unbound combo box depending upon the button clicked by the user. The combo box allows the user to choose from a list of retailers (text fields) in one case, a list of dates in another, and so forth. The rowsource is a different SQL query for each case.
When the form is first opened the code works no matter which button is clicked, allowing the user to open the appropriate form. Return to the switchboard and hit another button (assigning a new rowsource query), and up comes the error "the value you entered is not valid".
This did not occur in Access 97, but does pop up in when the db is run under Access 2000 and 2002 (I've converted the code). I do not wish to close the form, because it is the home screen for the application.
Depending upon the query, the data type of the bound column is either text, long int, or date/time. I've tried many things -- casting the non-text values to text fields, requerying, setting a dummy sql string as a rowsource in the properties box, compact, repair, decompile, recompile, praying to St. Isadore.
Can anyone shed light here?
most gratfully,
paradiso