kavvis
asked on
Create macro...
Hi.
I trie to make a macro...
What I want to do is to Delite all the tabels in the databas.
So when I run my macro then I make my database empty...
I trie to make a macro...
What I want to do is to Delite all the tabels in the databas.
So when I run my macro then I make my database empty...
ASKER
hmm.. how do I writ it lke this in MS acess 2007?
To Create a macro:
------------------
Alt + F11 to open the macro editor
For User Code:
Insert | Module to insert a code module into the project
In the project tree select the module.
Insert the required macro(s) into the selected module, ('Module1' or similar)
Close the Visual Basic Editor.
Check Security as appropriate:
-------------------------- ----
In the application select Tools | Macro | Security
2003 and Earlier : Select Medium
2007 : Outlook - Warnings for all Macros
: Others - Enable a trusted location and inhibit macros otherwise so do both!
: Disable Macros
Office Button, (top left of the screen)
Options
Trust Centre
Trust Centre Settings
MAcro Settings
Disable All MAcros with warnings
: Enable Trusted Locations
Office Button, (top left of the screen)
Options
Trust Centre
Trust Centre Settings
Trusted Locations
Add a preferred location
ENSURE YOUR FILE IS IN A TRUSTED LOCATION
Re-open to ensure it is recognised if the above has been changed
Select OK
To run a macro:
---------------
Alt + F8
Select the macro
Select 'Run'
Chris
------------------
Alt + F11 to open the macro editor
For User Code:
Insert | Module to insert a code module into the project
In the project tree select the module.
Insert the required macro(s) into the selected module, ('Module1' or similar)
Close the Visual Basic Editor.
Check Security as appropriate:
--------------------------
In the application select Tools | Macro | Security
2003 and Earlier : Select Medium
2007 : Outlook - Warnings for all Macros
: Others - Enable a trusted location and inhibit macros otherwise so do both!
: Disable Macros
Office Button, (top left of the screen)
Options
Trust Centre
Trust Centre Settings
MAcro Settings
Disable All MAcros with warnings
: Enable Trusted Locations
Office Button, (top left of the screen)
Options
Trust Centre
Trust Centre Settings
Trusted Locations
Add a preferred location
ENSURE YOUR FILE IS IN A TRUSTED LOCATION
Re-open to ensure it is recognised if the above has been changed
Select OK
To run a macro:
---------------
Alt + F8
Select the macro
Select 'Run'
Chris
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry.. Haven´t woke up get! :)
your solution worked very well.
What I ment was that I didn´t know just to write macro in acess 2007... never used it.. thank you for you rhelp!
your solution worked very well.
What I ment was that I didn´t know just to write macro in acess 2007... never used it.. thank you for you rhelp!
Glad to help and sorry I was 'difficult' but I had put the time into the activity, (pretty much the full hour to get it right) so was a bit miffed at the idea of the Q being deleted.
Chris
Chris
Chris
Open in new window