geekhead83
04-14-2004, 11:00 AM
i have a dao control which connects to a access database.
i have a recordcount statement (in a command button)to count the number of records in a table from the database.
when i run the prog, the no. of records are counted correctly and i get a message box (i have put this). if i press cancel on the message box and press the command button, i get the foll eror "Object is invalid or no longer set. (Error 3420)".
the problem is with the recordcount statement. now what do i do.
the first time, the prog runs, but if it is run again (without unloading the form), the above error occurs.
i have a recordcount statement (in a command button)to count the number of records in a table from the database.
when i run the prog, the no. of records are counted correctly and i get a message box (i have put this). if i press cancel on the message box and press the command button, i get the foll eror "Object is invalid or no longer set. (Error 3420)".
the problem is with the recordcount statement. now what do i do.
the first time, the prog runs, but if it is run again (without unloading the form), the above error occurs.