473,545 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why is Me. suddenly not Okay?

1,273 Recognized Expert Top Contributor
So, I had this bright idea today that didn't quite work out. Or maybe it is working out but requires me to change a habit. I'm working on a form that will be a sub-form of another form. During initial development, I find it easier or better to work on the form as stand-alone entity rather than a sub-form. One reason is that I can edit the form using the entire screen instead of just that portion of the main form allocated to the sub-form.

Anyway, this sub-form references some objects on the parent form. Those same named objects exist on the sub-form, so I thought why don't I do this:
Expand|Select|Wrap|Line Numbers
  1. dim obj as object
  2. set obj = Me
and then replace this
Expand|Select|Wrap|Line Numbers
  1. me.parent.controlname ...
  2. to
  3. obj.controlname
Then, when I am ready to put the two forms together, all I have to do is change
Expand|Select|Wrap|Line Numbers
  1. set obj = me
  2. to
  3. set obj = me.parent
Voila, all good, right? Well, the weirdest thing happened. Suddenly, I got compile errors in both the main form and sub-form. The compiler was telling me that object names didn't exist that I knew darn well existed. I have been running the main form for several days.

I tried this experiment. I changed an object name from "Salesman_filte r" to "Tsalesman_filt er", and I changed my code from Me.Salesman_fil ter to Me.Tsalesman_fi lter, and then the compiler was happy. The compile error was now reported a few lines further down on a reference to another object. I changed Tsalesman_filte r back to Salesman_filter and the compiler was still happy with the Me. reference, but still unhappy with the following reference to a different object.

So very weird. Then I tried changing the Me. references to Me! references, and the compiler stopped seeing an error. I changed all my Me. references to Me! references and no more errors.

What in the world happened? Can any of you explain this?

Thanks!
Jan 12 '24 #1
3 27121
NeoPa
32,564 Recognized Expert Moderator MVP
Hi Jim.

I'm not sure your explanation paints a very clear picture of the situation you're in. Do you have a minimalised (Remove everything except items germane to the issue) version you could possibly Zip & attach. I suspect I'll also require some straightforward instructions detailing precisely what you did; in which order; what results you saw at each stage.

I can say that your description doesn't match any expectation I'd have, regardless of how I interpreted what you've said. Nothing comes to mind at all at this point. However, I'm happy to look into it in more detail once I have a clear understanding of what I need to focus on.

It may be helpful also, to include information from Colin's Access/Windows/Office365 Version Checker. I have access only to 2019 ATM so anything that needs a version later than that will keep me from investigating further. Very unlikely of course.
Jan 12 '24 #2
jimatqsi
1,273 Recognized Expert Top Contributor
NeoPa,
I'm sorry I have not gotten back to this yet. I appreciate your interest in helping. I did fail to mention in my post that I have tried decompiling and recompiling, as well as Compact and Repair. I have backups that I can use to, presumably, repeat the process and see if the issue follows suit.

However, at the moment other issues are more pressing. The code my post refers to is part of a project for the not too distant future, but not today. I do want to understand what happened, so I will return to this, and hopefully, soon.

The question about version is certainly relevant. I've got a developer's license and the details are
MS 365 Apps for Enterprise
Version 2312 (Build 17126.20132 Click to Run)
Current Channel

Otherwise, I have reread my post and don't see anything I would change, except those steps I performed but didn't mention. I mean the post describes pretty well the sequence of events as I remember them.

I'd have to import some local data and change some links before I could hope to make a shareable database. I may yet do that, because I'd like for someone else to see this.

I will try to reproduce this and post an update.

Thanks for your interest!
Jan 16 '24 #3
NeoPa
32,564 Recognized Expert Moderator MVP
Hi Jim.

There's no rush. I hover & monitor most of the time but I can't promise I'll be able to throw much light on this. From what I understand this isn't behaviour I'd expect. Being able to reproduce your steps exactly would certainly help when you get to that stage, but I'll look at whatever you have. No promises even if you made a video showing all your steps exactly, but generally the more accurately I follow in your footsteps the higher the chance there is of me being able to help.

I'm also only able to test within 2019 ATM, so if it's the result of a recent update then I probably won't even get to see it.

You do what you can & I'll do what I can, and I hope we can manage to find something between the two of us :-)
Jan 16 '24 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3167
by: allenj | last post by:
DB2 UDB 7.2 WSE Fixpak 9 Linux Red Hat 7.3 A very strange thing just happened w/ my DB2 server. I am on Linux and using NIS - the instance owner is in the servers /etc/passwd file. Suddenly, DB2 would not authenticate any NIS-based logins, but it *would* authenticate the local non-NIS instance owner. This was happening not only w/...
12
1720
by: melanieab | last post by:
Hi, I have a button that, when clicked, saves all the info entered. It worked fine until suddenly it didn't, and I have no idea why. I get the error An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: System error. I found that this sometimes happens when there's some unrecognized...
0
1065
by: Lauchlan M | last post by:
<< Compiler Error Message: CS1595: 'myWebInterface.X.Y.AddEditUsers' is defined in multiple places; using definition from 'e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\mywebinterface_nexusdb\fe7356c1\5423ab61\assembly\dl2\24513897\98a5084 2_0255c401\myWebInterface_NexusDB.DLL' >> It seems to be having an issue with...
0
1061
by: Lauchlan M | last post by:
<< Compiler Error Message: CS1595: 'myWebInterface.X.Y.AddEditUsers' is defined in multiple places; using definition from 'e:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\mywebinterface_nexusdb\fe7356c1\5423ab61\assembly\dl2\24513897\98a5084 2_0255c401\myWebInterface_NexusDB.DLL' >> It seems to be having an issue with...
35
2989
by: Frederick Gotham | last post by:
(Before I begin, please don't suggest to me to use "std::vector" rather than actual arrays.) I understand that an object can have resources (e.g. dynamically allocated memory), and so we have to copy an object properly via copy- construction rather than using memcpy. However, is it okay to move an object manually (i.e. by using memcpy or...
6
1675
by: Pieter | last post by:
Hi, I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that sometimes suddenly stops loading. I've put everywhere in the code Exception Handlers, but no Exception is catched. it seems that other add ins aren't loaded afterwarths (nod32). Does anybody know a way to find out why an outlook add could do this? and find out after...
2
2341
by: MOHAN6491 | last post by:
Dear Friends, Please suggest me to solve my problem I have 4 systems connected in LAN. System are not connected to Internet. From the last month, Suddenly, the system halts without any responce and all icons on desktop disapears. But when the system is powered on again, it shows all the icons normally, and it starts working in healthy mode....
3
1113
by: =?Utf-8?B?R3JlZw==?= | last post by:
The opening movie is suddenly blurry in Rise of Nations. I think I've either accidently deleted a Windows System filter or one or more video filters has become corrupted. I've checked and I suddenly cannot see "avi" or "mpg" video files either - in Nero. But WMP still plays these fine. What's up?
1
1500
by: teddysnips | last post by:
I recently had to rebuild an instance of SQL Server. When it was restarted, one of the client apps (ASP.NET) could not connect - the user could see the login screen, but it kept throwing exceptions. Turns out that the database had been restored with a different name, so the connection string (stored in web.config) was amended. At that...
0
7490
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7682
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7449
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5351
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3479
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.