Solved

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

Posted on 2014-12-19
7
109 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
  • 4
  • 3
7 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 40509878
try


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

Author Comment

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

Expert Comment

by:Rey Obrero
ID: 40509900
how about

=IIf([txtSchedLBHR] >0,[txtTotalWeight]/[txtConvertedSchedHrs],0)
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 40509987
test this
Test-DB.zip
0
 

Author Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

759 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now