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 September 7th, 2006, 01:04 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Editing a Report

I started at this company not too long ago and they are wanting me to modify some Access reports for them. My problem is that I can't figure out where the data is coming from for a particular report. If I click on a 'label' in design view and goto 'Properties' it just tells me the name of the column that it's pulling from. I want to know the query or table that it's pulling from. Any ideas on how to find that out? It's probably something SO easy that I'm overlooking.

Thanks!
Brad
Reply With Quote
  #2 (permalink)  
Old September 7th, 2006, 01:09 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Brad,

You're really close... Make sure you are in design view, and then click a little box type thing at the top left corner of the report. This should bring up the property box for the report itself. The Datasource for the Report will give you the answer you need, and should be either a Query or a SQL Stamement. Yell if you need any more help with this.

Mike

Mike
EchoVue.com
Reply With Quote
  #3 (permalink)  
Old September 7th, 2006, 01:11 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Oh - And welcome to the forum. You'll find it a very valuable resource, and you'll probably find yourself being able to contribute before long

All the best

Mike

Mike
EchoVue.com
Reply With Quote
  #4 (permalink)  
Old September 7th, 2006, 01:12 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perfect! Thank you!
Reply With Quote
  #5 (permalink)  
Old September 7th, 2006, 02:27 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I've got another problem now. The query is pulling 2 records for this report. I have a field that I want to display in a label. The field for one of the records is Null, but the other has data. How do I tell a label to only display the record who's field is not Null? I'm assuming that I use an expression in the Control Source property, but I don't know expressions well enough to do this.

Thanks again!
Brad
Reply With Quote
  #6 (permalink)  
Old September 7th, 2006, 03:24 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

If I remember right, you can't display data in a label, but a textbox would look pretty much the same - you might just have to set the border-style to transparent.

As for the expression try the following

=iif(isnull([YourFieldName]),"",[YourFieldName])

Mike

Mike
EchoVue.com
Reply With Quote
  #7 (permalink)  
Old September 7th, 2006, 03:28 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm getting an '#Error'. I love M$'s user-friendly errors

Reply With Quote
  #8 (permalink)  
Old September 7th, 2006, 03:31 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

I think that means it doesn't recognize the data - I'd start with double checking the field name in the expression, and then possible put a text box right next to it, linked directly to the field to check the value and make sure that is coming though...


Mike
EchoVue.com
Reply With Quote
  #9 (permalink)  
Old September 7th, 2006, 03:40 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I got the error to go away. The textbox and the data field had the same name. :)

Now, it appears to be competely ignoring the record that has data in that field. It looks like the expression is only running on the record with the Null field. Any ideas?
Reply With Quote
  #10 (permalink)  
Old September 7th, 2006, 03:48 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

So the field is showing NULL, or is it completely blank?

Mike
EchoVue.com
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
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



All times are GMT -4. The time now is 05:51 PM.


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