473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Northwind traders

how can i delete all data from the northwind database sample that
comes with msaccess?
i want to adapt it to my own use!!!!

Jun 24 '07 #1
4 5789
you can open each table in Datasheet view, click the gray box in the upper
left corner of the "grid" to highlight all the records, and press the Delete
key on your keyboard.

or you can create a Delete query, add each table to the Design window *in
turn*, add the asterisked (*) row from the table to the grid and run the
query.

or you can write VBA code to loop through the tables, executing a SQL
statement to the delete the records on each table in turn.

hth
<ao********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
how can i delete all data from the northwind database sample that
comes with msaccess?
i want to adapt it to my own use!!!!

Jun 24 '07 #2
On Sun, 24 Jun 2007 14:01:10 GMT, "tina" <no****@address.comwrote:

And remember to do this in such an order that you don't violate
Referential Integrity: for example you cannot delete Customers until
you have deleted Orders. You cannot delete Orders until you have
deleted OrderDetails.

-Tom.

>you can open each table in Datasheet view, click the gray box in the upper
left corner of the "grid" to highlight all the records, and press the Delete
key on your keyboard.

or you can create a Delete query, add each table to the Design window *in
turn*, add the asterisked (*) row from the table to the grid and run the
query.

or you can write VBA code to loop through the tables, executing a SQL
statement to the delete the records on each table in turn.

hth
<ao********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegr oups.com...
>how can i delete all data from the northwind database sample that
comes with msaccess?
i want to adapt it to my own use!!!!
Jun 24 '07 #3
note the important point Tom brought up, that i had left out; it applies to
all three options i suggested in my previous post.

as a fourth option, you can: open a new, blank database (don't forget to
turn OFF the Name Autocorrect option, if you're using A2000 or newer).
import all the objects from the sample database; in the Import Objects
dialog box, click on Options and set the Import Tables option to Definition
Only.

hth
"tina" <no****@address.comwrote in message
news:GO*******************@bgtnsc04-news.ops.worldnet.att.net...
you can open each table in Datasheet view, click the gray box in the upper
left corner of the "grid" to highlight all the records, and press the
Delete
key on your keyboard.

or you can create a Delete query, add each table to the Design window *in
turn*, add the asterisked (*) row from the table to the grid and run the
query.

or you can write VBA code to loop through the tables, executing a SQL
statement to the delete the records on each table in turn.

hth
<ao********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
how can i delete all data from the northwind database sample that
comes with msaccess?
i want to adapt it to my own use!!!!


Jun 24 '07 #4
And before you do anything, make a backup copy, in case you need to refer to
it in the future!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com

Jun 25 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: RibGnaw | last post by:
Long, long ago when Access 97 first hit the streets a sample database called Northwind was shipped with it. At that time a number of articles had been posted on the correct procedure to remove all...
1
by: Allen | last post by:
Hi All, Have been using access for some time on a limited basis.I was playing around with the Northwind database and I have a question for you all. I was looking at the Products form and it give...
15
by: Jerry Alexander | last post by:
The Northwind Order Entry Application database is great! ----------------------------------------- But one thing is lacking: Real-time Stock Qty calculation!...
8
by: xtra | last post by:
Hi Folk I looked at the Northwind Sample Database for the first time recently and I was just wondering why they made it so ugly. If northwind is supposed to be inspiring to young and hopeful...
2
by: dennist685 | last post by:
Can't open Northwind I remembered doing walkthrough using Northwind. However it wasn't an http project but a file project using the development server. Northwind allowed me to add, edit and...
2
by: JohnnyBoy | last post by:
I am learning to program C++ .net and am having difficulty with one of the exercises and wondered if someone could help? I am including the code for a console app I wrote according to the exercise...
0
by: wjadoon | last post by:
JUNCTION TRADER INC. I N T E R N A T I O N A L I N C . 81-33 164 PL. Jamaica New York 11432 USA. Ph: 516 707 5000 www.junctiontrader.com Dear Sir:
5
by: Harlan Messinger | last post by:
I installed the Northwind database in my SQL Server developer version, added to the server logins, and in OSQL ran use Northwind GO grant all to GO These executed without error. But my...
1
by: kristinh | last post by:
I am unable to find where to open Northwind Traders. I am using Access 2007. Regards Kristin
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.