I have a report with fields like QuanO, QuanD, SKU, Desc, Price. In the detail section the SKU field is directly under the Desc field so that it always displays the item number under the description. However, if we type comments on the order, the item number becomes REM and the description then is the typed-in comment. The following is the data source for the SKU field: “=IIf([sku]=”REM”,” “,[SKU])” That blanks out the REM from showing, but it leaves a blank line where the SKU control is. What I would like to do is to shrink the detail section to 1 line when the SKU=REM. Can I do that through code, or is there a better way? Any ideas?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
hiding a control (A2K SR1)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » hiding a control (A2K SR1)
- This topic has 4 replies, 2 voices, and was last updated 23 years, 10 months ago.
Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerJune 27, 2001 at 11:16 pm #531118The simplest way to deal with it, assuming that nothing else is on the same line with the SKU field, is to set the SKU field to something approximating a zero height. Then set the CanGrow property of both the control and the section to True. Move the other controls up close beneath the SKU control. Then change your formula to “=IIf([sku]=”REM”,Null,[SKU])”.
The result will be that the row will appear when you have an SKU and disappear when you don’t. The SKU field will expand to display data and will push the rows below it down but will not do so when the value is null.
-
Gwb
AskWoody LoungerJune 28, 2001 at 11:51 am #531167Charlotte–thanks, that works, but I have vertical lines in that detail section to create columns. I made the vertical lines the same height as the detail section, but when it grows, the lines don’t so they become dashed lines. Can I make a function to set the line height? iif([sku]=”REM”,null,funSetLine) Or is there a better way?
-
WScharlotte
AskWoody LoungerJune 28, 2001 at 12:22 pm #531173I did warn you about other controls on the same line being pushed down, didn’t I? Do your line lengths depend on section height or did you just size them in at a fixed height for each row? You can download a sample reports database RptSmp00.exe from Microsoft which contains a report showing lines drawn from code on a report. That might help you.
-
Gwb
AskWoody Lounger
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
1 hour, 56 minutes ago -
Blank Inetpub folder
by
Susan Bradley
2 hours, 47 minutes ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
4 hours, 39 minutes ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
8 hours, 23 minutes ago -
Wait command?
by
CWBillow
2 hours, 14 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
11 hours, 18 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
17 hours, 54 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
1 day, 2 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
1 day, 4 hours ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
22 hours, 40 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 17 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 18 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
13 hours ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
9 hours, 41 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
2 days, 5 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days, 9 hours ago -
Unable to eject external hard drives
by
Robertos42
19 hours, 44 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
7 hours, 25 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
5 hours, 19 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 13 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 15 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 19 hours ago -
Upgrade Sequence
by
doneager
3 days, 12 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
2 days, 11 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 16 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 18 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 17 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 10 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.