evanscamman
Registered User.
- Local time
- Yesterday, 20:08
- Joined
- Feb 25, 2007
- Messages
- 274
I am finishing up a Access 2003 database in 2007 - retaining the .MDB format. I've noticed a few odd things, but have been unable to find any documentation addressing them. I'd like to know if anybody else has noticed the same things, or if I'm just weird or my computer is evil.
1) It seems that the way global variables work has changed. In 2003 I had a global variable that passed data to the query for my subform. This worked fine. But in Access 2007 before the form loads, the query asks for the value of the global variable. I was forced to use a hidden field instead to supply data to the query.
2) Similar problem with global variables used to create an instance of Outlook:
This worked find in 2003, but now in 2007 they don't retain their value. Once the code has executed and the user then clicks anywher on the form they lose their value and cause 'Connection to the remote server was lost' errors.
I worked around this by redeclaring the variables before use, which makes me wonder - where are the original instances going, since I didn't close them?
3) I created a new checkbox and it didn't have an 'AfterUpdate' event, but existing checkboxes on the same form (created in 2003) do. It seems that the new checkboxes are a bit emasculated - having only half of the events and far fewer fields in the Property window.
I've read everything I can find detailing the changes to 2007 but haven't seen anything that addresses these issues. Please help.
Thank you,
Evan
1) It seems that the way global variables work has changed. In 2003 I had a global variable that passed data to the query for my subform. This worked fine. But in Access 2007 before the form loads, the query asks for the value of the global variable. I was forced to use a hidden field instead to supply data to the query.
2) Similar problem with global variables used to create an instance of Outlook:
Code:
Public golApp As Outlook.Application
Public golNameSpace As Outlook.NameSpace
This worked find in 2003, but now in 2007 they don't retain their value. Once the code has executed and the user then clicks anywher on the form they lose their value and cause 'Connection to the remote server was lost' errors.
I worked around this by redeclaring the variables before use, which makes me wonder - where are the original instances going, since I didn't close them?
3) I created a new checkbox and it didn't have an 'AfterUpdate' event, but existing checkboxes on the same form (created in 2003) do. It seems that the new checkboxes are a bit emasculated - having only half of the events and far fewer fields in the Property window.
I've read everything I can find detailing the changes to 2007 but haven't seen anything that addresses these issues. Please help.
Thank you,
Evan