Testing Returned Data

G

Guest

In Basic, I was always able to test returned data to see if it was String or
Numeric:-
If isstring(a) then
if isnum(a) then etc
but there does not seem to ne the same test available within Access VB. I am
sure that there must be and I am just not able to find it. Can anyone help?

Thanks
 
A

Allen Browne

See Help on these functions:
VarType()
TypeName()
IsNumeric()
IsDate()

To test for a field with no value:
IsNull()

If you are using functions that have optional arguments of type Variant that
may not be supplied, see:
IsMissing()

To test for a Variant that is uninitialized, see:
IsEmpty()

To test if an object variable is not initialized:
If MyObject Is Nothing Then
 
G

Guest

Thanks for this Alan. I tried "isnum() and isnumber() isstring() etc, etc
but, of course these would not work. I could not find them in the Help files
because I did not know the name to request help on.

Thanks once again aAan

Ray C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top