473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Migrating A2K to A2K2 - subform problems

I have an Access application I've used long and hard under A2K, but now I
need to run it on a PC which only has A2K2 installed.

One of the main forms has a subform, which is filtered when the form opens.
The filter occurs in the form's OnLoad event; it calls a sub (in the main
form's module), which (correctly) builds a criteria string named strWhere.
The next line of code looks like this:
Me!fsubWorkLog.Form.Filter=strWhere
This line throws an error, telling me that I'm referring to an object which
is closed or doesn't exist.
The immediate window returns False for
?Me!fsubWorkLog is Nothing
But when I type in
?Me.fsubWorkLog.Form is Nothing
I get the same error message about an object being closed or not existing.

Just as a precaution, I decompiled the code and ran it again, but the result
was the same.
Any ideas what could be going on?

TIA
= Turtle
Nov 13 '05 #1
1 1235
sorry -
I tried to withdraw this when I found the problem, but it doesn't seem
to have "taken".

In case anybody cares,
the problem was that I hadn't re-linked the tables when I transferred
the application to another PC.
Once I got them pointed at an existing MDB, the problem went away.

- Turtle

"MacDermott" <ma********@nospam.com> wrote in message
news:ed*****************@newsread2.news.atl.earthl ink.net...
I have an Access application I've used long and hard under A2K, but now I
need to run it on a PC which only has A2K2 installed.

One of the main forms has a subform, which is filtered when the form opens. The filter occurs in the form's OnLoad event; it calls a sub (in the main
form's module), which (correctly) builds a criteria string named strWhere.
The next line of code looks like this:
Me!fsubWorkLog.Form.Filter=strWhere
This line throws an error, telling me that I'm referring to an object which is closed or doesn't exist.
The immediate window returns False for
?Me!fsubWorkLog is Nothing
But when I type in
?Me.fsubWorkLog.Form is Nothing
I get the same error message about an object being closed or not existing.

Just as a precaution, I decompiled the code and ran it again, but the result was the same.
Any ideas what could be going on?

TIA
= Turtle

Nov 13 '05 #2

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

Similar topics

15
by: Rey | last post by:
Howdy all. Appreciate your help with several problems I'm having: I'm trying to determine if the Visit subform (subformVisits) has a new record or been changed, i.e. dirty. The form that...
1
by: RWC | last post by:
Hello, I have just converted a database from A97 to A2K2. I had a procedure for changing start up properties that worked really well. For some reason, they don't work in A2K2 and I'm having a...
19
by: Joe Scully | last post by:
Hi all, I am having trouble with access adding a blank record to a subform everytime I finish entering data and closing the form. (The form and subform are based on the one table) When...
12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
4
by: crystal | last post by:
I've checked the threads but haven't been able to come up with a solution to my issue. Help...... I have a simple form based on a table. Within the form is a subform that is also, through a Q,...
2
by: David W. Fenton | last post by:
I think at various times we've all encountered this problem: A subform is on a main form. From the code of the main form we refer to some property of/control on the child form thus: ...
64
by: John | last post by:
Hello there, Im cursing my place of employment...and its taken me a month to realise it... The scenario: Ive just stepped into a role to migrate an access database to VB.Net. The access...
1
by: maffonso | last post by:
Hi people, My main form has a subform nested with another subform, both subs work as a subDatasheet. Indeed I keep the mainForm just to put some filters. Whenever I open de MainForm I have no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.