AllExperts > Using MS Access 
Search      
Using MS Access
Volunteer
Answers to thousands of questions
 Home · More Using MS Access Questions · Answer Library  · Encyclopedia ·
More Using MS Access Answers
Question Library

Ask a question about Using MS Access
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Micah Rousey
Expertise
Pretty much anything Microsoft Office Related. My expertise is Microsoft Access, all versions, including complex VBA code

Experience
9 years ongoing database development with Access, including higher end relational database management systems.

Publications
www.modernpolymath.com

Education/Credentials
BS Business Information Systems, Bellevue University.

Past/Present Clients
All branches of the US Armed Forces, several regional governmental boards, PG&E, Washington Mutual Bank, and several more.

 
   

You are here:  Experts > Computing/Technology > Business Software > Using MS Access > Subform References

Using MS Access - Subform References


Expert: Micah Rousey - 9/8/2006

Question
I developed an application in Access 97 that is working fine in 2002. In 2003 I can't reference subform text boxes in SQL querries, reports and such. I reference the subform text boxes as

forms![main form].form![sub form]![control]

I read the reference is now

form![main form]![subform].form![control]

Do you know which Access version the syntax changed to the latter and is there a way to make the old subform reference work. If not I have hundreds of lines of code to change.

Thanks,

Steven  

Answer
In Access 2003, the reference should look like this:

Forms![Main Form]![Subform].Form.Control

There are problems with working with older multiple versions of Access, and I'm afraid that will continue.

There are so many permutations to how this could have changed, it's tough to say how to fix it.  If you have an old 97 version of the database, I would try different ways of converting it if you could.  (I don't know how you did it this time.)  If you have Access 2000, convert it to that first, and try running the Access 2000 version with 2003 (it won't need to convert it.)  Try actually converting the Access 97 to Access 2003.  Try importing all the objects from a converted version to a new Access 2003 file, run the debugger, compact and repair.

There is probably a combination that will work to translate it and get it to run.

Sorry I couldn't be more help, feel free to follow up if you think I might be able to help further.

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.