473,503 Members | 1,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 2467:The Expression you entered refers to an object that is closed or doesn't exist

On a client's machine with Office 97, my access program gives an error
"The Expression you entered refers to an object that is closed or
doesn't exist" when I am assigning a value in the checkbox.

chk_multiuser.Value = 0

What could be the cause of this error ?
Nov 12 '05 #1
3 19528
cl*****@memrb.com.cy (CLarkou) wrote in message news:<db**************************@posting.google. com>...
On a client's machine with Office 97, my access program gives an error
"The Expression you entered refers to an object that is closed or
doesn't exist" when I am assigning a value in the checkbox.

chk_multiuser.Value = 0

What could be the cause of this error ?


probably you referred to a form-field name in a module that is not a
classmodule of the form (event-procedure). Outside the form-context
the field-object is not available or (if available) could only be
addressed using an explicit reference to what form in the database
(DAO) or indirectly by passing through byref-parameters or
function-results.

Marc
Nov 12 '05 #2
M.***********@uva.nl (Marc) wrote in message news:<ae**************************@posting.google. com>...
cl*****@memrb.com.cy (CLarkou) wrote in message news:<db**************************@posting.google. com>...
On a client's machine with Office 97, my access program gives an error
"The Expression you entered refers to an object that is closed or
doesn't exist" when I am assigning a value in the checkbox.

chk_multiuser.Value = 0

What could be the cause of this error ?


probably you referred to a form-field name in a module that is not a
classmodule of the form (event-procedure). Outside the form-context
the field-object is not available or (if available) could only be
addressed using an explicit reference to what form in the database
(DAO) or indirectly by passing through byref-parameters or
function-results.

Marc


OOOOOkay....
is the form open? IF not, you can't reference anything on it. The
object that's closed is the form, so the controls on it and the
functions/procedures that are behind the form are not in memory/not
available. Real simple. check to see if the form is open before
running your code. If it isn't, open the form. Then run your stuff.
then return the form to it's original state (open/closed). done deal.
Nov 12 '05 #3
The line chk_multiuser.Value = 0 (assigning a value to a checkbox) is in
the form_load event I am trying to open and is a control on the same
form. The program runs fine on hundrends of machines. Only this machine
has problem.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
6973
by: chippy | last post by:
Hi, I've a VB script that creates a Access object in a word doc. Here is the full script. It works for all but the Export. Which always fails with a 3011 error. If I do the same in Access as a...
0
2104
by: antsays | last post by:
I am trying to serialize a collection to disk using the code provided. This works just fine but when I try do copy and past the xml file to another location or sometimes even just click on the...
2
9210
by: Matthew Louden | last post by:
using System.Data; using System.Data.SqlClient; //etc... SqlConnection conn = new SqlConnection(connString); SQLDataSetCommand myCmd = new SQLDataSetCommand("select * from Test;", conn);...
1
6658
by: matt | last post by:
hello, i am using a .NET 1.1 winform to perform webrequests via the System.Net.WebClient class (not a webservice, actually). It uploads values via a POST command & a URL, then receives the html...
1
6462
by: Mad Scientist Jr | last post by:
For some reason I can't get a WebClient to access an outside URL from behind our firewall. The code works when it runs outside the firewall. I turned on windows authentication in the web.config...
1
2041
by: sumit205 | last post by:
Error 2467:The Expression you entered refers to an object that is closed or doesn't exist . DoCmd.OpenForm frm2, WindowMode:=acDialog, OpenArgs:="c" & NewProductID In the debig mode when i...
8
4663
by: ipy2006 | last post by:
In my HTML I have, <input type="button" class="cartonsumkey" value="Sum Cartons" onclick="sumup(this);" /> In an external file that is called in Head area, I have, function sumup( o ) { ...
2
1523
by: rksadhi | last post by:
/*Geting error ---object reference not set to an instance---at bold line----plz reply asap thanks in advance*/ cmd = new OleDbCommand ("SELECT e.emp_id,e.email, m.email AS Email FROM emp_details...
10
4090
by: mercea | last post by:
hi all, i'm trying to insert the time/date a button was clicked on a gridview and it generates an error:the string was not recognized as a valid DateTime.There is an unknown word starting at index 0...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.