B
BB
is it possible to copy or duplicate the structure of a table, with no data
inside?
Thanks
BB
inside?
Thanks
BB
Dennis said:Right click on the table name and click copy. Right click in the database
window and click paste. You will then get a box to enter the table name with
options to just copy structure or structure and data.
Dennis said:DoCmd.CopyObject, "Original Table", acTable, "New Table"
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * FROM [New Table]"
DoCmd.SetWarnings True
BB said:I should do it in a VBA function
BB
name
with no
data
BB said:Sorry, maybe I didn't explained properly the matter:
DoCmd.CopyObject copies structure and data, I need only the structure.
Thanks
BB
Dennis said:DoCmd.CopyObject, "Original Table", acTable, "New Table"
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * FROM [New Table]"
DoCmd.SetWarnings True
BB said:I should do it in a VBA function
BB
"Dennis" <[email protected]> ha scritto nel messaggio
Right click on the table name and click copy. Right click in the database
window and click paste. You will then get a box to enter the table name
with
options to just copy structure or structure and data.
:
is it possible to copy or duplicate the structure of a table, with no
data
inside?
Thanks
BB
BB said:I should do it in a VBA function