Why DB.CreatTableDef doent work?

  • Thread starter Thread starter Mota
  • Start date Start date
M

Mota

Hello;
I used this code to create a structure of a table named "CashTBL":
Dim DB As DAO.Database
Set DB = DBEngine(0)(0)
DB.CreateTableDef "Type2TBL", , "CashTBL"

But it doent create a table.Why?Then how to copy structure of a table in my
DataBase?
And what the argument "Connect" can be in this method?
Unfortunately my access Help system doesnt work for some statement like this
and pressing F1 shows a blank window with a Windows background color.and i
dont know why.It seems these are on MSDN cd and not included in Access or VB
Help system,otherwise my help file is corrupted.(but it works fine in most
cases).Does anyone know why my help system is working so?
Thank you so much for all ur helps.
 
I did it but nothing happened.
So whats the problem for the help file?Can we fix it?
Thank you for ur help.
 
1. I normally use the ObjectBrowser as the Help
navigation aid. Provided that you have DAO 3.6 in the
References, you can open the ObjectBrowser,
type "CreateTableDef" and then click the Search button
(binocular symbol). Select it in the "Members" pane and
then click the Help button in-built in the ObjectBrowser.
This in-built Help button seems to take me to the right
Help topic every time.

2. Try re-install Office / Access "as originally
installed".

HTH
Van T. Dinh
MVP (Access)
 
Back
Top