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

Adding a table

Im creating a database for my hotel based on the access sample template. We sell packages incl accommodation and a variety of activities based at various venues. Ive managed to get the program to calculate the cost of a package but I now need to add in the arrival date of a booking, number of guests, number of nights.

As incl with the template I am using The following tables currently: orders, order details, products, venues, i think I'm going to need a 'booking details' table with the fields 'arrival date' , 'total guests', total nights', but I can't figure out how to link this to the' order details', and/or include those details to be filled in on the 'Create New Customer Order' page.

Any ideas much appreciated.

** snip **

Thank you
Feb 20 '12 #1

✓ answered by NeoPa

Julie Bright:
As incl with the template I am using The following tables currently: orders, order details, products, venues, i think I'm going to need a 'booking details' table with the fields 'arrival date' , 'total guests', total nights', but I can't figure out how to link this to the' order details', and/or include those details to be filled in on the 'Create New Customer Order' page.
This is where you need to think critically Julie. Others can't really do that for you. If they do, then they leave you in a place where you're not in a position to take over. All I can do is ask you questions that help you to consider what the answer should be.

In what way, in your system, is a booking different from an order? Is it different at all? Are you looking to link up separate ideas, or simply realise they are two sides of the same coin?

I repeat - I cannot know the answers to these questions. I may have suspicions, but the answers must come from you alone.

Julie Bright:
Also I don't need the shipping tables/queries etc how can I delete these without screwing everything else up? I tried just copying only the items I wanted but just kept getting the message that certain bits were missing.
I've removed this from your question as we only allow one per thread. If you'd like to ask it separately then please do, but I suggest you include the relevant details otherwise we won't be able to help you.

3 1728
NeoPa
32,556 Expert Mod 16PB
Julie Bright:
As incl with the template I am using The following tables currently: orders, order details, products, venues, i think I'm going to need a 'booking details' table with the fields 'arrival date' , 'total guests', total nights', but I can't figure out how to link this to the' order details', and/or include those details to be filled in on the 'Create New Customer Order' page.
This is where you need to think critically Julie. Others can't really do that for you. If they do, then they leave you in a place where you're not in a position to take over. All I can do is ask you questions that help you to consider what the answer should be.

In what way, in your system, is a booking different from an order? Is it different at all? Are you looking to link up separate ideas, or simply realise they are two sides of the same coin?

I repeat - I cannot know the answers to these questions. I may have suspicions, but the answers must come from you alone.

Julie Bright:
Also I don't need the shipping tables/queries etc how can I delete these without screwing everything else up? I tried just copying only the items I wanted but just kept getting the message that certain bits were missing.
I've removed this from your question as we only allow one per thread. If you'd like to ask it separately then please do, but I suggest you include the relevant details otherwise we won't be able to help you.
Feb 20 '12 #2
Thank you for your comments, in short I suppose there is no difference between a booking and an order. My concern was in trying to keep them separate to avoid duplicating dates and numbers, as a booking for a room would involve x guests for 2 nights from (say) 23 june and an activity would be booked for the same x guests for 1 day (say) 24 June and another activity for the same day etc. I guess I can add these fields to the Order Details table? Qty field could be used as 'Total Nights'?

My ultimate aim, (which I have achieved in Excel but is rather messy and needs reprogramming when products/activities change) is to be able to calculate the cost of a package (room and activities). Create a booking with those details, with confirmations/purchase orders going to suppliers, and an Itinerary for customers detailing when and where they need to go for activities.
Feb 21 '12 #3
NeoPa
32,556 Expert Mod 16PB
Again, I'm left without the full knowledge of all your thinking and requirements (which is good - I don't want to be doing this for you anyway.), but do all room bookings necessarily cross with activity bookings? If not, then perhaps you need an Order table, which simply manages overall orders, and a separate OrderDetail table that handles items of multiple types. One might be a Room item, and others might include Activity items. Exactly how it's stored depends on the critical thinking that you, as the only person who really can, have done to decide how everything best fits together. It may well be that Room items can be considered as parents of the Activity items. It all depends on exactly what you need.
Feb 21 '12 #4

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

Similar topics

0
by: GregD | last post by:
I am trying to add an InnoDB table to an existing replication environment. Having some trouble. The slave my.cnf is using replicate-do-table. I have tried creating the table as MyISAM on the...
3
by: johkar | last post by:
This is a shortened version of my problem. Below I am cloning the first data row and appending it to create a new row. If you make selections/add values and then press Add Row, the text box value...
0
by: Tom Esker | last post by:
I have three linked tables that I can update individually but when I put them together into a query, I can no longer update the data. The tables are tied together with a field called "CASEID"...
4
by: Rob Meade | last post by:
Hi all, I'm desperately trying to get this to work and I just cant do it - new to ASP.net - probably the reason! I'm using visual studio for this - I have this in the html page : <asp:Table...
8
by: David Smith | last post by:
I want to add a table in my ms access database at runtime. through Vb.NET. any ideas?
6
by: Mark | last post by:
I'm trying to add a table to a dataset but get the error: "A DataTable named 'BordDates0040' already belongs to this DataSet." Code: Dim dtBordDates As DataTable dtBordDates =...
6
by: Edge | last post by:
hi all, I added a html table with 2 rows inside the itemtemplate of my gridview. It works ok, but the table border never touches the border of my gridview cell. How should I do if I want the...
1
by: somaskarthic | last post by:
Hi In my application , i need to create table rows at runtime. Using javascript with table id arguments i could replicate the rows at runtime. Each of these rows has checkboxes (7.no) , dropdown...
5
by: Liquidtouch | last post by:
I'm not much of a HTML or Javascript programmer but have a little experience just hacking away at it. I am creating a HTML application and would like to be able to add or remove rows of a table....
1
by: vivek kapile | last post by:
Title:Dynamically adding table row with a checkbox using JavaScript Author:Vivek Kapile Email:snipped Language:JavaScript Platform:JavaScript in ASP.net Technology:Used in ASP.net...
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: 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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.