R
rebelscum0000
Dear All,
I want to Make a New Table (Action querie), with "Structure Only",
(Like when I select a
Table. Left click on it, Select "Copy" and later Left Click "Paste" in
my Current DB)) In
Visual Basic.
I have a Form Called MainExclude_Form, with a Control Source called
MyAppz
I want to use MyAppz to name my New Table
My Record Source of the Form comes from a Table Called MainExclude_Tbl
with the Followings FieldName :
ID (Key, Autonumber)
MyKeword
MyAppz
FileName
FolderPath
FileExtension
FileType
FileSize
FileModified
FileAccessed
FileCreated
FileAtributes
MyInclude
I created a New Query, Selected all FieldName, of MainExclude_Tbl,
Then Rigth Click Select Query Type and click on Make-Table Query
Enter the Table Name: Symantec_Tbl (as example)
And the resul of the SQL View are:
SELECT MainExclude_Tbl.ID, MainExclude_Tbl.MyKeyword,
MainExclude_Tbl.MyAppz, MainExclude_Tbl.FileName,
MainExclude_Tbl.FolderPath, MainExclude_Tbl.FileExtension,
MainExclude_Tbl.FileType, MainExclude_Tbl.FileSize,
MainExclude_Tbl.FileModified, MainExclude_Tbl.FileAccessed,
MainExclude_Tbl.FileCreated, MainExclude_Tbl.FileAttributes,
MainExclude_Tbl.MyInclude INTO Symantec_Tbl
FROM MainExclude_Tbl;
When I ran it works perferct, it created the new Table but with all
data From
Table MainExclude_Tbl
I do not want that!
First I do not have any idea How to build my SQL statement to Execute
into my code
TO MAKE A NEW Table; BuT I want something like:
sQL4 = _
INSERT ALL THE FIELDS
FROM MainExclude_Tbl
INTO a NEW TABLE (MYAppz (TABLE))
WHERE ALL The recordS OF The NEW TABLE are blank
CurrentDb.Execute sQL4, dbFailOnError
As you can Read I am lost
PLease help me
Thank you very much in advance
Regards,
Antonio Macias
I want to Make a New Table (Action querie), with "Structure Only",
(Like when I select a
Table. Left click on it, Select "Copy" and later Left Click "Paste" in
my Current DB)) In
Visual Basic.
I have a Form Called MainExclude_Form, with a Control Source called
MyAppz
I want to use MyAppz to name my New Table
My Record Source of the Form comes from a Table Called MainExclude_Tbl
with the Followings FieldName :
ID (Key, Autonumber)
MyKeword
MyAppz
FileName
FolderPath
FileExtension
FileType
FileSize
FileModified
FileAccessed
FileCreated
FileAtributes
MyInclude
I created a New Query, Selected all FieldName, of MainExclude_Tbl,
Then Rigth Click Select Query Type and click on Make-Table Query
Enter the Table Name: Symantec_Tbl (as example)
And the resul of the SQL View are:
SELECT MainExclude_Tbl.ID, MainExclude_Tbl.MyKeyword,
MainExclude_Tbl.MyAppz, MainExclude_Tbl.FileName,
MainExclude_Tbl.FolderPath, MainExclude_Tbl.FileExtension,
MainExclude_Tbl.FileType, MainExclude_Tbl.FileSize,
MainExclude_Tbl.FileModified, MainExclude_Tbl.FileAccessed,
MainExclude_Tbl.FileCreated, MainExclude_Tbl.FileAttributes,
MainExclude_Tbl.MyInclude INTO Symantec_Tbl
FROM MainExclude_Tbl;
When I ran it works perferct, it created the new Table but with all
data From
Table MainExclude_Tbl
I do not want that!
First I do not have any idea How to build my SQL statement to Execute
into my code
TO MAKE A NEW Table; BuT I want something like:
sQL4 = _
INSERT ALL THE FIELDS
FROM MainExclude_Tbl
INTO a NEW TABLE (MYAppz (TABLE))
WHERE ALL The recordS OF The NEW TABLE are blank
CurrentDb.Execute sQL4, dbFailOnError
As you can Read I am lost
PLease help me
Thank you very much in advance
Regards,
Antonio Macias