Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 8th, 2005, 09:31 AM
ruffroggy ruffroggy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 ruffroggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 30 sec
Reputation Power: 0
Empty records filling Mailing label space

I am trying to create a filter for mailing labels. My form filter works, and opens the report, however there are spaces inbetween labels. How do I delete those blank spaces. I have a total of five tables these are working off of. One table has property information. The other four are split into land types. I have the labels set up, and the form filter. I have five combo boxes and four cmd buttons(directing to each one of the four land type reports)
using the following code

Function BuildSQLString(strSQL As String) As Boolean
Dim strSELECT As String, strFROM As String, strWHERE As String, strTYPE As String, intNum As Integer

strSELECT = "*"
strFROM = "Parcel"
strWHERE = ""
If IsNull(label4) Then
strWHERE = strWHERE
Else
strWHERE = strWHERE & " And State = '" & label4 & "'"
End If

strSQL = "SELECT " & strSELECT
strSQL = strSQL & "FROM " & strFROM
If strWHERE <> "" Then strSQL = strSQL & " WHERE " & Mid$(strWHERE, 6)
BuildSQLString = True

End Function

Private Sub LabelsRes_Click()
On Error GoTo Err_Handler

Dim strSQL As String
Dim strRptName As String

strRptName = "Labels PrivateLandOwner"

If Not BuildSQLString(strSQL) Then
MsgBox "There was a problem building the search string."
Exit Sub
End If
CurrentDb.QueryDefs("qryResidentalLabels").SQL = strSQL
RefreshDatabaseWindow
DoCmd.OpenReport strRptName, acViewPreview
DoCmd.Close acForm, "MailingLabels"
Exit_Handler:
Exit Sub
Err_Handler:
MsgBox Err.DESCRIPTION & Err.Number
Resume Exit_Handler
End Sub

With a blank query with the main table, I attempted to add a is not null but It won't stay in the field because of my code. The labels themself are pulling address' off one of the other 4 tables.

How do I get rid of this wasted space on my labels. Any help would be appreciated. Thanks

Reply With Quote
  #2  
Old July 14th, 2005, 08:30 AM
ansentry ansentry is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Melbourne, Australia
Posts: 9 ansentry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 2 m 35 sec
Reputation Power: 0
The may or may not help, I just remembered that I had it saved in my archives. Don't know who wrote it, but it was not me.


Regards,


John A
Attached Files
File Type: zip RemoveWhitesSpacesFromReports_2000.zip (27.4 KB, 242 views)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Empty records filling Mailing label space


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway