|
-
Nov 3rd, 1999, 06:23 PM
#1
Thread Starter
Junior Member
Hello VB programmers,
Reading out the next field in my database
AcadInfoDYN(“TEST”)
If a field is not filled in it will give the next error:
Invalid use off null
Before reading, how can I prevent this error?
Nice greetings,
Ingrid.
-
Nov 3rd, 1999, 06:40 PM
#2
Addicted Member
You can use the IsNull() function to see if it's null or use construction !field & "".
------------------
smalig
[email protected]
smalig.tripod.com
-
Nov 3rd, 1999, 08:54 PM
#3
Addicted Member
When reading try this:
If Not IsNull(AcadInfoDYN(“TEST”)) Then
'put code here
else
var = ""
End If
------------------
Jorge Ledo
[email protected]
Portugal
-
Nov 3rd, 1999, 09:05 PM
#4
The easiest way is to do this:
Text1.Text = "" & rs("MyField")
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|