Report Header Printing Error

J

Joe

Hello,

I am having a problem with the OnPrint event handler in my
report header section. My code is below:

Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As
Integer)
Dim ClientName As String

ClientName = CStr(Me.BusName)
 
G

Guest

Try using this instead:

ClientName = Cstr(Me!BusName)

using the BANG operator to refer to the FIELD name and not the control name.
--

Bob Larson
Super Moderator - Access World Forums
Access VIP on Utter Access
____________________________________
Access 2000, 2003, 2007, SQL Server 2000, Crystal Rpts 10/XI, VB6
WinXP, Vista
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top