 |
| 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
|
|
|
|

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

September 7th, 2006, 01:09 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
|
|

September 7th, 2006, 01:11 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
|
|

September 7th, 2006, 01:12 PM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Perfect! Thank you!
|
|

September 7th, 2006, 02:27 PM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

September 7th, 2006, 03:24 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
|
|

September 7th, 2006, 03:28 PM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm getting an '#Error'. I love M$'s user-friendly errors
|
|

September 7th, 2006, 03:31 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
|
|

September 7th, 2006, 03:40 PM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

September 7th, 2006, 03:48 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
So the field is showing NULL, or is it completely blank?
Mike
EchoVue.com
|
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 |
|
 |