S
steve
I downloaded the following code some time ago and I belive I used it.
Im with a new company and want to use this code again.
However it does not seem to work. When I press F8 in the VB builder I
get nothing. It also does NOT show that there are any errors. It just
sits there. It does NOT high lite the function name and step through
the procedure. I have copy and pased several bits of code that seem to
give no errors, but also does nothing, just sits there. No errors no
red letters. Its like it is perfectly writen code, that does nothing.
Can anyone tell me what is wrong ?
Thanks.
Here is the code.
Function fTableExists1(strTableName As String) As Boolean
Dim db As Database
Dim tdf As Tabledef
Set db = DBEngine(0) (0)
fTableExists1 = False
For Each tdf In db.TableDefs
If tdf.Name = strTableName Then fTableExists = True
Next tdf
Set db = Nothing
End Function
Im with a new company and want to use this code again.
However it does not seem to work. When I press F8 in the VB builder I
get nothing. It also does NOT show that there are any errors. It just
sits there. It does NOT high lite the function name and step through
the procedure. I have copy and pased several bits of code that seem to
give no errors, but also does nothing, just sits there. No errors no
red letters. Its like it is perfectly writen code, that does nothing.
Can anyone tell me what is wrong ?
Thanks.
Here is the code.
Function fTableExists1(strTableName As String) As Boolean
Dim db As Database
Dim tdf As Tabledef
Set db = DBEngine(0) (0)
fTableExists1 = False
For Each tdf In db.TableDefs
If tdf.Name = strTableName Then fTableExists = True
Next tdf
Set db = Nothing
End Function