 |
| 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 8th, 2006, 10:40 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
When you click Debug, which line of code is highlighted?
mmcdonal
|
|

September 8th, 2006, 10:40 AM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by mmcdonal
When you click Debug, which line of code is highlighted?
mmcdonal
|
The 1st one
|
|

September 8th, 2006, 10:53 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Okay, if the first line looks like this:
If IsNull(Me.TextBox1) Or Me.TextBox1 = "" Then
It is wrong unless the text boxes on your form are named "TextBox1"
What are the names of your text boxes? They may be field names.
mmcdonal
|
|

September 8th, 2006, 10:55 AM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by mmcdonal
Okay, if the first line looks like this:
If IsNull(Me.TextBox1) Or Me.TextBox1 = "" Then
It is wrong unless the text boxes on your form are named "TextBox1"
What are the names of your text boxes? They may be field names.
mmcdonal
|
My first line looks like this...
If IsNull(Me.CMP_NAME1) Or Me.CMP_NAME11 = "" Then
And those are the names of the textboxes.
|
|

September 8th, 2006, 10:56 AM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Correction...
If IsNull(Me.CMP_NAME1) Or Me.CMP_NAME1 = "" Then
I have fat fingers today too
|
|

September 8th, 2006, 10:58 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Try this:
If IsNull(Me.CMP_Name1) = False Or Me.CMP_Name1 = "" Then
And what event did you put this on?
mmcdonal
|
|

September 8th, 2006, 11:05 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Try putting this code on the report header's On Format event, since the text boxes are on the header, right?
mmcdonal
|
|

September 8th, 2006, 11:16 AM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Isn't there SOME way to control which record a textbox reads from? I feel like I'm spinning my wheels here :(
|
|

September 8th, 2006, 11:38 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Why would you want to do that? If there is more than one value for the field, it should not be in the page header. You can put it in the detail or the detail sort field header. But not the report or page header.
How large is the database? Is it confidential? You can send a copy and we can work on it.
I am not sure if you can filter a recordsource for just one text box. Like:
Recordsource: [cmp_name1] WHERE [pk] = ?
mmcdonal
|
|

September 8th, 2006, 11:43 AM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by mmcdonal
Why would you want to do that? If there is more than one value for the field, it should not be in the page header. You can put it in the detail or the detail sort field header. But not the report or page header.
How large is the database? Is it confidential? You can send a copy and we can work on it.
I am not sure if you can filter a recordsource for just one text box. Like:
Recordsource: [cmp_name1] WHERE [pk] = ?
mmcdonal
|
Wait, does the Header read data differently than the Detail?? Can you elaborate on that?
I can't post the DB b/c it's confidential. I'll try to give as much info as possible though.
It's an 'Invoice Report'. This particular report has 2 records that it's using to calculate what is displayed. The field CMP_NAME is blank for one of these records and the other record has what I want to be shown. I'm just tryin to get this damn thing to display what's in the record where that field is not Null :(
|
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 |
|
 |