Solved

Converting to accde files

Posted on 2010-08-23
4
289 Views
Last Modified: 2013-12-25
Greetings all ...

A solution I've just received on a different question is (finally!) providing strong encouragement for me to convert my applications to accde/accdb pairs of files. I'm concerned that coding practices I've adopted in the past won't easily support a conversion to an accde environment. At least not without some serious rethinking and quite a bit of recomposition.

To date the structure I've utilized is basic textbook. Two files, one front end and one back end, both mdb or accdb files. Back end file is all tables, front end file is everything else (including an autoexecute macro), with links to all the tables in the back end. Basic beginner textbook.

The most obvious potential conflict I'm envisioning, as I try to convert at least one of these files to a compiled format, is that I have dozens of instances throughout the front end of my apps where queries, based on conditions available at the moment, are created on the fly, executed, and then deleted. Am I right in assuming that those, at least as they're currently structured, won't run in an accde environment?

Let's assume that my rewriting all instances of this 'create/manipulate/delete' coding methodology isn't an option. Is it possible for me, from within the accde file, to direct that these temporary objects be managed on a workspace within another, linked, read/writable accdb file?

I hope I've articulated this little issue clearly. The implications of your responses, regarding the larger general question of 'how to manage multiple linked files', will clearly have a huge bearing on how I view and map out future projects.

I am so grateful for your willingness to lend your expertise to lost souls like me!

Best,

John
0
Comment
Question by:jofoco4
  • 2
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 33501442
You cannot create forms or reports in the .accde environment, but you can create/delete queries, if that's what you're asking.

That said, I've rarely found a need to create/delete querie on the fly. You can always just build a temporary query and work with the QueryDef object as needed.
0
 

Author Comment

by:jofoco4
ID: 33501754
Thanks for this. My apps don't currently create forms or reports, so I think I'm safe on that front.

One quick followup. I don't understand the distinction you draw between "creating/deleting queries on the fly", and "just build a temporary query and work with the QueryDef object as needed".

This confusion is probably my fault, in how I phrased my first question. Building a temporary query and working with the querydef is how I "create/delete queries on the fly". It's likely your response was just confirming for me that this method is generally accepted.

Thanks again for your prompt reply!

Best,

John
0
 
LVL 84
ID: 33506098
By "on the fly", I mean actually creating a QueryDef and populating it.

My description was probably not as clear as it should be. I think you're better off creating and storing a query in the database and then just manipulating that query as needed - i.e. change the SQL property to reflect what you need, then "run" that query. Better yet, just use SQL where possible and be done with it!
0
 

Author Comment

by:jofoco4
ID: 33506424
Good thoughts. Thanks.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question