Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hide #Type! in a field on a datasheet view form

Posted on 2014-12-19
7
Medium Priority
?
124 Views
Last Modified: 2014-12-19
I have a form opening in datasheet view.  And there is a record at the bottom of the other records that isn't really there yet.  But in one of the fields of that record I see #Type! and want to hide it.  The field's control source is:

=[txtTotalWeight]/[txtConvertedSchedHrs]

I tried this but it doesn't work:

=IIf(IsNull([txtSchedLBHR]),"",[txtTotalWeight]/[txtConvertedSchedHrs])

also tried:

=IIf([txtSchedLBHR]= "","",[txtTotalWeight]/[txtConvertedSchedHrs])

with no luck.
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40509878
try


=IIf(IsNull([txtSchedLBHR]),Null,[txtTotalWeight]/[txtConvertedSchedHrs])
0
 

Author Comment

by:SteveL13
ID: 40509885
Didn't work.  Sorry.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40509900
how about

=IIf([txtSchedLBHR] >0,[txtTotalWeight]/[txtConvertedSchedHrs],0)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:SteveL13
ID: 40509907
Still didn't work.

I'm going to strip most everything out of a copy of the d/b and attach it.
0
 

Author Comment

by:SteveL13
ID: 40509926
Attached.  A stripped down copy of the database.  

Open frmLoadingSchedule.

Need to hide the #Type! values in the record that isn't really there yet (last 3 columns).
Test-DB.zip
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 40509987
test this
Test-DB.zip
0
 

Author Comment

by:SteveL13
ID: 40510018
Perfect.  Thank you.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question