A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Blank Numeric Field



 
 
Thread Tools Display Modes
  #1  
Old July 14th, 2004, 08:06 AM
Mark S
external usenet poster
 
Posts: n/a
Default Blank Numeric Field

If a text box on a form has the control source of a numeric field from
a table, how do you test in code to see if the field is blank? IF
LBL1 = NULL... and IF LBL1 = ""... return errors. I have a workaround
of IF LEN(LBL1 & "a") = 1 THEN ... but that is just terrible coding.
  #2  
Old July 14th, 2004, 08:16 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Blank Numeric Field

If IsNull(Me.TextBox1) = True Then
'TextBox1 Has Null Value

Else
...
End If

HTH
Van T. Dinh
MVP (Access)



-----Original Message-----
If a text box on a form has the control source of a

numeric field from
a table, how do you test in code to see if the field is

blank? IF
LBL1 = NULL... and IF LBL1 = ""... return errors. I have

a workaround
of IF LEN(LBL1 & "a") = 1 THEN ... but that is just

terrible coding.
.

 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suppressing a blank field in a report Kay Setting Up & Running Reports 4 July 14th, 2004 05:08 PM
'This page left blank' field does not work on Roman numbers etc. Craig Flores General Discussion 3 June 8th, 2004 12:31 AM
Please help! Displaying only rows with empty cells in a numeric field using Advanced Filter. Thanks JOCA New Users 1 June 5th, 2004 02:37 AM
Suppressing a Blank Field Kim Cose Mailmerge 1 May 11th, 2004 09:36 PM


All times are GMT +1. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.