Wrox Programmer Forums
|
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 September 8th, 2006, 11:49 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Yes. A bound textbox on the header only reads the first record in the detail section. The detail section loops through all records one at a time.

If you create a detail header, sort it, and then the detail header will read the first record in the detail section, which should be the sorted for value anyway.

If you want to send a value to the text box on the top of the form, then use an unbound text box and send the value from the detail section on format event like:

If me.cmp_etc Then
   Me.txtBoxonHeader = "Something"
   Else
   Me.txtBoxonHeader = "Something Else"
End If



mmcdonal
 
Old September 8th, 2006, 11:50 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

This last one might not work too well if there are many different values.
If you can send the db in a zipped file and explain what you are trying to get...


mmcdonal
 
Old September 8th, 2006, 11:55 AM
Authorized User
 
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I wish I could share the DB, but I can't. I'm a contractor here and can't share anything.

I think I'm on the right track now. How do I reference a datafield from the recordset from within the Detail code?

 
Old September 8th, 2006, 12:02 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I can tell you how to reference a "datafield" in the detail section, but I am not sure what the whole question means. Maybe we can take this offline. Please email me.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Datagrid toddw607 ASP.NET 2.0 Basics 5 April 26th, 2007 03:06 PM
Need Help A Editing String! Little Shell VB.NET 2002/2003 Basics 2 June 4th, 2005 03:05 AM
TextBox Editing chriskhan2000 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 October 19th, 2004 09:38 AM
cell editing saiyedriyaz BOOK: Beginning Java 2 1 May 15th, 2004 04:27 AM
HELP!!! Datalist Editing cjcd ASP.NET 1.0 and 1.1 Basics 1 April 3rd, 2004 08:17 PM





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