Solved

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

Posted on 2014-12-19
7
113 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 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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 500 total points
ID: 40509987
test this
Test-DB.zip
0
 

Author Comment

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

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

815 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

9 Experts available now in Live!

Get 1:1 Help Now