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.
Printable View
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.
You can use the IsNull() function to see if it's null or use construction !field & "".
------------------
smalig
[email protected]
smalig.tripod.com
When reading try this:
If Not IsNull(AcadInfoDYN(“TEST”)) Then
'put code here
else
var = ""
End If
------------------
Jorge Ledo
[email protected]
Portugal
The easiest way is to do this:
Text1.Text = "" & rs("MyField")
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]