Hi: I appreciate your response. I tried the statement below in thecondition
column of the row and it worked if the table was there, but did nothing if
the table did not exist. Basically, the Macro gave no response message or
anything. It simply stopped.
DCount("Field1","Table1")
I would love to use a function like DCount in the condition column ofthe
row without having to create a custom module. Any thoughts or recommendations?
Mike
:
On Aug 16, 8:41 am, rmhindley <
[email protected]>
wrote:
How can I do a condition test in a macro to know if a table exists. I
believe I need to build my own module that searches the database and provides
a true or false return. If so, what is the code?
This would return a 0 if MyTableName does not exist in the database
and a 1 if it does, no?
existsTable = DCount("MyTableName", "MSysObjects",
"[Name]='MyTableName'")- Hide quoted text -
- Show quoted text -