473,405 Members | 2,279 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,405 software developers and data experts.

Perplexing Problem with Access 2007

3
I have a strange problem with Access 2007 which I cant figure out in the design mode. I have form2 which uses a field field1 in form1 in its load event using the notation

field2 = Forms!start!field1.

But in run mode when I close the application when form2 is in focus, the execution runs through the form load event of form2 and causes the following error:
can't find the form 'form1' referred to in a macro expression or Visual Basic code.

The error occurs because when the application is closed form1 closes first, making its field1 unavailable for form2, but why the execution runs through the load event of form2, that too only when form2 is in focus? I managed a work around by checking if form1 is open in form2 load event, but it is disturbing to see execution running through unintended path.

I have also discovered that even within the load event of form1 execution extends only upto this accessing of field2 and not thereafter, when the application is closed!!!

Can any one throw some light in this regard? Thanks in advance.
Dec 25 '10 #1
1 1152
RuralGuy
375 Expert 256MB
Ansered in another Forum: http://www.accessforums.net/access/p...lem-10136.html
You should read this link: http://www.excelguru.ca/node/7
Dec 25 '10 #2

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

Similar topics

0
by: John Chapman | last post by:
Hello, With the new feature of Access 2007 allowing the attachment of files within a table, how do we take advantage of this on the ASP.NET side? How do we upload and download them and work...
4
by: Balex | last post by:
Hi I have recently helped somebody converting an Access application into an Access (2002) front-end and an Oracle backend. It worked fine, until he decided to install and use Access 2007...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
1
by: Karl | last post by:
I have an Access 2000 mde. It runs OK on computers with Access 2007 except that it won't transfer data to an Excel worksheet using TransferSpreadSheet. Can I install the A2000 runtime on a...
1
by: Milan Mehta | last post by:
I have my application running in Access 2007. Can I use port my database to MySQL and retail Access 2007 as front End ? As this will save lot of my efforts but still get the stability of MySQL. ...
2
by: D Hammer - Sayner | last post by:
I am new to using Access 2007 and a novice with Access period. I have two older databases that I created in Access 2000. When I open DB1 I get the usual ribbon menus shown. When I open DB2...
1
BlackPanther
by: BlackPanther | last post by:
Has anyone found any issues running Access applications developed in 2003 under Access 2007?
3
by: WestAussie | last post by:
Hello I'm trying to populate a DataGridView with a stored procedure using VB.NET. The query I need to use is within a Access 2007 datadase. When I run it in Access it is showing data but the...
1
by: BL3WC | last post by:
Hi, I'd created a MDE under Access 2003. It is now under testing stage. Some of the users will use Access 2003 runtime and some will use Access 2007 runtime to run this MDE. I installed the...
0
by: simulationguy | last post by:
I have a database the runs fine in Access 2003 but this routine crashes with error 2105 "You can't go to the specified record" in Access 2007 on the last line !itemNumber.SetFocus Any idea why...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.