keep on getting an eror messge:
run-time eror '3709'
operation is not allowed on an object referening a closed or invalid connection
It is pointing straight to the opening of a dataenvironemnt command.
So to fix it I first test to see if the command is open
on debug it tell m hat te connection is losed.
DeAccessAdmin is the dataenvironment name
CTS is the connection name
User_Details is the ommand name
The code is a follows:
If DeAccessAdmin.CTS.state = adstateopen then
DeAccessAdmin.CTS.close
end if
If DeAccessAdmin.rsUser_Details2.state = adstateopen then
DeAccessAdmin.rsUser_Details.close
end if
DeAccessAdmin.rsUser_Details2.open 'error mesage here
.....
Funny thing is I am askng that i it is closed to close it
Anyone have ideas
?
run-time eror '3709'
operation is not allowed on an object referening a closed or invalid connection
It is pointing straight to the opening of a dataenvironemnt command.
So to fix it I first test to see if the command is open
on debug it tell m hat te connection is losed.
DeAccessAdmin is the dataenvironment name
CTS is the connection name
User_Details is the ommand name
The code is a follows:
If DeAccessAdmin.CTS.state = adstateopen then
DeAccessAdmin.CTS.close
end if
If DeAccessAdmin.rsUser_Details2.state = adstateopen then
DeAccessAdmin.rsUser_Details.close
end if
DeAccessAdmin.rsUser_Details2.open 'error mesage here
.....
Funny thing is I am askng that i it is closed to close it
Anyone have ideas
?