PC Review


Reply
Thread Tools Rate Thread

Changing a field name, problms with printing report

 
 
Janet
Guest
Posts: n/a
 
      15th Apr 2004
Hi,

I am using the code below to change a field name to
TOTALS. The code works. However, when I print out a
report, only the TOTALS and data print out, however the
remaining field name prints, but not the data. How can I
fix this?

Here's the code:

Function ACTION_TOTALS()



Dim dbs As Database
Dim tdfTable As TableDef

Set dbs = CurrentDb
Set tdfTable = dbs.TableDefs("COPY TOTALS BY ACTION")
tdfTable.Fields("SUM OF COUNTOFACTION").Name = "TOTALS"


End Function

 
Reply With Quote
 
 
 
 
Elwin
Guest
Posts: n/a
 
      15th Apr 2004
Try opening your report's recordsource and viewing the
records. Are there any? If so, my guess is that
your 'other' text box controls are in a grouped Section of
your report. The detail section is where those normally
belong. good luck.

>-----Original Message-----
>Hi,
>
>I am using the code below to change a field name to
>TOTALS. The code works. However, when I print out a
>report, only the TOTALS and data print out, however the
>remaining field name prints, but not the data. How can I
>fix this?
>
>Here's the code:
>
>Function ACTION_TOTALS()
>
>
>
>Dim dbs As Database
>Dim tdfTable As TableDef
>
>Set dbs = CurrentDb
>Set tdfTable = dbs.TableDefs("COPY TOTALS BY ACTION")
>tdfTable.Fields("SUM OF COUNTOFACTION").Name = "TOTALS"
>
>
>End Function
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Changing field names for a report John Spencer MVP Microsoft Access VBA Modules 1 7th May 2009 06:59 PM
changing Microsoft Report's field value r Microsoft C# .NET 0 2nd Nov 2008 12:25 PM
Changing field size in report jokobe Microsoft Access Form Coding 4 14th Dec 2007 04:29 PM
Changing Printers of a Report before Printing Johann Schwarz Microsoft Access 12 29th Jul 2006 11:41 AM
Changing Unbound Field on a Report Joe Williams Microsoft Access Form Coding 1 31st Dec 2003 10:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:32 PM.