Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 8th, 2004, 03:02 PM
Registered User
 
Join Date: Jan 2004
Location: Cary, NC, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Skharva
Default Linking Subform using ADO

Hello everyone. I have a dilemma that has bugging me for few months now, and I have decided to finally try something radical to solve it and could use your advice.

BACKGROUND: Most of my database front-ends typically wind up with the same layout -- a main (parent) data entry form that has a tab control with multiple tabs on it and each tab has a sub-form (child). These subforms typically hold historic data or multiple instances to their parent. Sometimes they are the "Junction Table" in a Many-to-Many. A likely example would be a Customer (parent) form with OrderDetails, AddressHistory, OrderHistory, ActivityHistory, etc subforms (children).

PROBLEM: While I love the ease and quickness of Access when developing, I have come to really despise "BOUND" forms and all that goes along with them. Yes, they have advantages, but the reality is they also have many shortcomings and furthermore no client/server database would ever use them (e.g. Oracle, Sysbase, and even SQL Server).

QUESTION: Could someone please explain to me - based on the above example - how you could build a parent form with a tab-control and several subforms and be able to make it UNBOUND??

So far i have ubound control on my main form which works find but i just don't know how to link my subform now.


Would someone please offer some wisdom and help here? It would be greatly appreciated!!!



Skharva
Reply With Quote
  #2 (permalink)  
Old January 13th, 2004, 12:27 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use a subform and not make it bound. Use an ADO recordset and pass a textbox value as a parameter and populate it only when needed. Try not to use too many tabbed subforms. If you must use them, use stored procedures if you have SQL Server as a back end. If you are using Access as the back end for the data, you do not have much choice on what to do. Many to Many relationships kill not only your application, but your network as well because you end up bringing every record for every table that you use in every query.

Unfortunatly, using many to many relationships is the only way to capture business in many instances, but planning your front end with graceful degradation can help increase performance.

Make sure to use your indexes properly and also do not use too many auto numbers as the primary key. Use smart primary keys so htat you can decrease the number of joins in your queries.





Sal
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subform linking problem JimTate BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 0 April 22nd, 2008 11:07 AM
Linking an unbound subform probitaille Access VBA 1 September 13th, 2006 12:27 PM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM
Linking forms using ADO code sherr8 Access 11 March 26th, 2004 01:18 PM
ADO could ADO counot find the specified provider. Rob Collie Classic ASP Databases 2 June 9th, 2003 04:12 AM



All times are GMT -4. The time now is 07:32 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.