Command buttons

baba78

Registered User.
Local time
Today, 00:34
Joined
Jan 19, 2009
Messages
38
Hi,
I’m having problems adding command buttons to a form. When I click on the command button to add one to the form a message comes up reading “Object variable or With block variable not set” – and it won’t let me add one. Could anybody explain what on earth this means in English and how I might remedy it?

Thanks
 
It sounds like you still have your form open in another instance and code it attempting to execute. Press Ctrl+Break to see if it interupts any code execution.

Otherwise close the whole database down and reopen and retry.

David
 
David,
Unfortunately i've already tried that several times and it doesn't appear to make a difference.
 
Have you tried creating a blank mdb and importing the form into it and re trying it.
 
Just tried that and it's coming up with the same error/message....
It's all rather frustrating....:mad:
 
I've tried this but still no joy, i get the same message.
 
Unfortunately not, it's on a shared drive here at work....
 
Try doing a google search for your error message. I know there is a Microsoft article about this.
 
Ha Hah - and the Lord said "Let there be light..." are you saying that the mdb is not split between front end and back end and is situated on a shared server? Or if it is split do each of the users have a local copy of the front end on their machine?

David
 
It's all in one place on a shared drive - i created a log in for multiple users, could this be the source of the problem?
 
This is the main cause of your problem. There are many discussions on splitting databases and deployment. Many say "O I've never had any problems". Well that day has now arrived. It may not be your fault but the first thing that should be done is to split your database between tables and objects.

It sounds like you have corruption in your mdb. Hope you have backups.

David
 

Users who are viewing this thread

Back
Top Bottom