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 28th, 2007, 05:18 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default Geting table information from a control

Hello everyone,

         I'm trying to get information out of a table to place in a report in Access 2003. I have set a control to obtain an ID number according to certain criteria. It successfully returns the ID number but that is all. any ideas on how I would place all the information into the report? Thanks!

 
Old February 28th, 2007, 05:30 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default

How about DLookup inside the code?

 
Old March 1st, 2007, 08:24 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You usually create a query and then create the report based on the query. If you use a control to look up a particular column in your table, without flow control, it will return the first record it sees and not move through the records. A query is better.


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Oage accessing information not under control Ron Howerton Ajax 3 March 28th, 2008 01:14 PM
Get Information about ObjectDataSource control deokule2003 Visual Studio 2005 0 March 7th, 2006 07:26 AM
Inserting Information From Form into another Table smartgir Access VBA 6 October 22nd, 2004 12:35 AM
updating table information with a form? lanctotd Access 1 June 8th, 2004 12:46 PM
Coloring Information in Richtextbox Control bmains Pro VB.NET 2002/2003 0 August 13th, 2003 03:24 PM





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