Re: if table exist
- From: salad <oil@xxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 00:52:22 GMT
adil wrote:
Hi ,In a code module you can a function like the following
does any knows how can i check the existence of a table in a ms access database ?i need a sql statement that provide this function.
Thanks .
Function TDE(strTable As String) As Boolean
Dim tdf As TableDef
On Error GoTo 0
On Error Resume Next
Set tdf = CurrentDb.TableDefs(strTable)
TDE = (Err.Number = 0)
End Function
You can call this function, in a query, like this
TableExists : TDE("Junk")
If you are calling this from an external app, you'll need to read your documentation.
.
- Follow-Ups:
- Re: if table exist
- From: David W. Fenton
- Re: if table exist
- References:
- if table exist
- From: adil
- if table exist
- Prev by Date: Re: run an Access query from windows scheduler
- Next by Date: Re: Trouble with DAO "SEEK" in converting application to SQL Express back end.
- Previous by thread: Re: if table exist
- Next by thread: Re: if table exist
- Index(es):
Relevant Pages
|