D
Dennis
Hi,
OS: XP Pro SP3
Access: XP Office Pro - SP3
I have a report that is based upon a query. I want to format the City, St &
Zip, but I can not "see" my variables. So, how do I get access to the
variables?
The field names in the query are:
City
State
PostalCode
My code in the Detail Print event is as follows:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim strZip As String
strZip = Left([PostalCode], 5)
End Sub
The value of PrintCount is 1. The error message I recieve is "... can't
find the field 'PostalCode' referred to in your expression.
I have tried the following to access the variable in the Immediate window
while in the Print Event of the Detail section of the report.
?PostalCode
?[PostalCode]
?[mailinglist].[PostalCode]
?me.PostalCode
?[qryMemberReport]![PostalCode]
?Me.PostalCode.Value
I can access the following variables from my query record:
?MemName = Abernathy, Joe
?MemNo = 1234567
?Address1 = 123 Main Street
?HomePhone = 3211234567
?MemType = P
?DateJoined = 12/1/2001
?DateExpires = 12/31/2099
?BirthDate = 1/1/1950
?MemberTerm = L
?PrintCount = 1
I could not access the following fields:
?PostNo
?LastName
?FirstName
?Suffix
?City
?State
?PostalCode
?PaidBy
So I can access some of field on the query record, but not all of them. Any
suggestions?
OS: XP Pro SP3
Access: XP Office Pro - SP3
I have a report that is based upon a query. I want to format the City, St &
Zip, but I can not "see" my variables. So, how do I get access to the
variables?
The field names in the query are:
City
State
PostalCode
My code in the Detail Print event is as follows:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim strZip As String
strZip = Left([PostalCode], 5)
End Sub
The value of PrintCount is 1. The error message I recieve is "... can't
find the field 'PostalCode' referred to in your expression.
I have tried the following to access the variable in the Immediate window
while in the Print Event of the Detail section of the report.
?PostalCode
?[PostalCode]
?[mailinglist].[PostalCode]
?me.PostalCode
?[qryMemberReport]![PostalCode]
?Me.PostalCode.Value
I can access the following variables from my query record:
?MemName = Abernathy, Joe
?MemNo = 1234567
?Address1 = 123 Main Street
?HomePhone = 3211234567
?MemType = P
?DateJoined = 12/1/2001
?DateExpires = 12/31/2099
?BirthDate = 1/1/1950
?MemberTerm = L
?PrintCount = 1
I could not access the following fields:
?PostNo
?LastName
?FirstName
?Suffix
?City
?State
?PostalCode
?PaidBy
So I can access some of field on the query record, but not all of them. Any
suggestions?