There are one or many ways to test this.
Here are two ways,
Dim dataFileName
dataFileName = Me.Text0
If IsNull(dataFileName) Then
'Or If Len(dataFileName & vbNullString) = 0 Then
MsgBox "It is a Variant Type, but is Null"
Else
MsgBox "It is a Variant Type, but is not Null"
End If
The other way is to declare it as String, but make sure you pass a String not Null
Dim dataFileName As String
dataFileName = Me.Text0 & vbNullString
'Or dataFileName = Nz(Me.Text0, vbNullString)
If Len(dataFileName) = 0 Then
MsgBox "It is a String Type but is a NullString, but NOT NULL"
Else
MsgBox "It is a String Type, it is not 'empty' persay."
End If