Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2007, 01:09 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default access adp subform connected to sql 2005

i am having problems using access 2003 as the front end connected to sql 2005 express as the back end when trying to create forms with subforms. Pulling up the main table retrieves everything in the linked table and not by the linked ID items.
ie.
StudentTAble
studentID
name, address, etc

ClassTable
ClassID
studentID
coursetitle, time, etc

when i setup a main form for StudentTable and then create a subform for ClassTable I want the forms to retrieve the student name and all the classes they are enrolled in. When I try to do this, I get the student name but in the subform it is retrieving all the classes in the ClassTable. I can't get it to bind to the studentID.


 
Old February 5th, 2007, 08:45 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You need to go to the subform properties dialog box, and on the data tab, select the "Link Child Fields" and / or "Link Master Fields" and tell the form what to link on.

Did that work?

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
can't access db in sql server 2005 brillox BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 May 3rd, 2007 05:15 PM
Ms Access 2003 and SQL 2005 micdev SQL Server 2005 1 March 22nd, 2007 02:50 PM
C# and SQL express 2005, multi-user access ?? Boudy C# 2005 4 February 27th, 2007 04:43 AM
SQL 2000 SERVER+ACCESS ADP DLOOKUP MHONG Access ASP 1 October 25th, 2005 08:36 AM
Adding new record in Access 2003 adp subform rayo Access 1 September 4th, 2004 04:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.