473,408 Members | 1,908 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,408 software developers and data experts.

Amending northwind template

I am trying to create my own db from the northwind template. Generally it has all the elements I need, but also several I don't, such as 'shipping'. How can I remove these without causing there deletion to provoke error messages?


Hope this make sense, any ideas appreciated.
Feb 21 '12 #1

✓ answered by JayF

I feel your pain. I was in your situation not long ago, that is; a complete newbie to Access. It's taken me the best part of three months' work to build from scratch a customised database somewhat more complex than Northwind, and it's still not completely finished.

Learning Access and DB Administration is a long, hard task. Even with a number of years experience in Excel, it's not something you can just pick up and crack on with. Expect frustration and learn patience.


In answer to your question, one solution could be to simply hide all the controls (i.e. text boxes, sub-forms, buttons) that you don't need. You can do this by right clicking on a control in design view, clicking properties and then setting the Visible property in the Format tab of the properties panel to No.

This workaround relies on the forms not having underlying programming code (VBA) that resets the properties each time the windows open, which some databases have. If you find them reappearing, that would be why.


I also feel NeoPa's pain. The wizards on this site are extremely patient and helpful, but their magic is limited by our (newbie's) skills and understanding, there's only so much they can do.

Research, research, research. Google is your friend. Good luck.

8 3446
NeoPa
32,556 Expert Mod 16PB
By considering the error messages and avoiding them.

I did warn you that we couldn't help much unless you wrote a meaningful question Julie. Without any details we're just left guessing at what you're having trouble with. My response perfectly answers your question, but is almost useless nevertheless, because the question is.
Feb 21 '12 #2
JayF
45
I feel your pain. I was in your situation not long ago, that is; a complete newbie to Access. It's taken me the best part of three months' work to build from scratch a customised database somewhat more complex than Northwind, and it's still not completely finished.

Learning Access and DB Administration is a long, hard task. Even with a number of years experience in Excel, it's not something you can just pick up and crack on with. Expect frustration and learn patience.


In answer to your question, one solution could be to simply hide all the controls (i.e. text boxes, sub-forms, buttons) that you don't need. You can do this by right clicking on a control in design view, clicking properties and then setting the Visible property in the Format tab of the properties panel to No.

This workaround relies on the forms not having underlying programming code (VBA) that resets the properties each time the windows open, which some databases have. If you find them reappearing, that would be why.


I also feel NeoPa's pain. The wizards on this site are extremely patient and helpful, but their magic is limited by our (newbie's) skills and understanding, there's only so much they can do.

Research, research, research. Google is your friend. Good luck.
Feb 21 '12 #3
NeoPa
32,556 Expert Mod 16PB
Hiding items is one approach, but frankly, as it has little effect on the database except to simplify the items displayed for a confused developer perhaps, it might not suit your purpose.

My earlier post was less unhelpful than it may have appeared ;-) Typically, such errors reflect some form of interlinking between objects. Dependencies of one sort or another. The error message generally gives an idea of what and where the dependency is to be found, so that it can be removed, and hence the dependent object may also be deleted.

If you find that inadequate information for you, then more precise details in your question can help us to help you more directly.
Feb 22 '12 #4
Thank you for the additional info, unfortunately while i am a competant 'exceller' i dont seem to have Access terminology to hand -I shall press on and when I get to the hitch I will try to word my problem better
Feb 22 '12 #5
JayF
45
One more piece of advice, if I may, just in case you aren't already doing it: Make regular copies of the template to play around with as well as very regular copies of your master version and name them all appropriately (e.g. Hotel Management v1.0.001, ...2, etc.) If you break something and can't figure out how to fix it, you can just skip back to a previous version and not lose too much work.

Also, there are loads of handy videos on YouTube that might help.

I take it you have searched for a template or even solution that more closely suits your requirements? A business model I can think of that might fit your needs would be Car Rental (or any other rentals).
Feb 22 '12 #6
Thank you,yes, I am making regularly copies, very early on I discovered there was no way of undoing things that seemed not to work. I think with the ideas/thought processes you and neopa have prompted I'm very close ... (famous last words). Tx (ps I had hope there was an undiscovered global ''search and replace/delete', but my hopes were too high. I have searched for something closer to my requirements, but the Northwind template does seem to be closest. I shall worry about removing the parts I don't need (shipping is the main part) when I've got the rest working.
Feb 22 '12 #7
JayF
45
Am I right in thinking that you want to remove the block on creating an invoice without completing the shipping details?

If so, try this.

- Click Database Tools > Visual Basic. Microsoft Visual Basic will open.
- On the navigation panel on the left find "Form_Order Details", double click it. The VBA code for that form will appear.
- About 2/3 of the way down you will find the following:

Expand|Select|Wrap|Line Numbers
  1. Function ValidateShipping() As Boolean
  2.     If IsNull(Me![Shipper ID]) Then Exit Function
  3.     If Nz(Me![Ship Name]) = "" Then Exit Function
  4.     If Nz(Me![Ship Address]) = "" Then Exit Function
  5.     If Nz(Me![Ship City]) = "" Then Exit Function
  6.     If Nz(Me![Ship State/Province]) = "" Then Exit Function
  7.     If Nz(Me![Ship ZIP/Postal Code]) = "" Then Exit Function
  8.  
  9.     ValidateShipping = True
  10. End Function
- Delete the 6 If statements from the middle so it looks like:

Expand|Select|Wrap|Line Numbers
  1. Function ValidateShipping() As Boolean
  2.  
  3.     ValidateShipping = True
  4. End Function
Those if statements are triggered when you click "Create Invoice" on the Order Details form and check to see whether the Shipping details have been completed.

- Now go back to Access and right click on the Order Details form in the Navigation Panel and click Design View.
- Click the Shipping Information tab so that an orange box appears around all the shipping fields. Ensure that the drop down box at the top of the Property Sheet reads "Shipping Information_Page"
- Click the Format tab and set the Visible property to No.

This eliminates the need to enter shipping information before completing an order, but you will still need to click the "Ship Order" button before you are able to close an order. It's not perfect, but it's a step in the right direction.

Test it thoroughly. My understanding of VBA and that database are far from perfect, or even good, but I've added a few orders and it seems to work ok.
Feb 22 '12 #8
Wow thank you I shall give it a go (when I've read it a dozen times to take it in)
Feb 23 '12 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: SilasTheSailor | last post by:
Hi everyone I am new to this and have tried to customize the northwind.mdb to my company. My problem is that after an order is written the number of items in stock does not get automatically...
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...
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...
0
by: Giovanni Parodi | last post by:
Hello everybody. I'm tryng to use the northwind CE example that is downloadable from the MSDN library. I created an explicit snapshot folder for the db Northwind and a Virtual directory (called...
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...
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...
2
by: martin | last post by:
Hello, Today I fetched the standard Access-2003 template "orders management db" from http://office.microsoft.com/en-au/templates/TC010185481033.aspx?pid=CT101426031033 In de openingform one...
2
by: Alberto | last post by:
I have a script of the database Northwind for sql server 2000 but now I'd like to use it in the sqlserver express of the visual studio 2005. How can execute this script to create northwind in the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.