473,387 Members | 1,516 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.

Is it possible to move a record from 1 tbl into another and add fields from a 3rd tbl

I am creating a database for a small travel agent.
I would like to move the record of a holiday which is in an AvailableHolidays table to a BookedHolidays table when a customer books the holiday, i would also like to add the CustomerID to the record in the Booked holidays table, is there an easy way to do this?
Nov 3 '07 #1
3 1194
missinglinq
3,532 Expert 2GB
Your post is somewhat short on info, but as a general approach, I would have a single Holidays table, not two, with a check box called "Booked." When the holiday is booked, you check the box and fill in the CustomerID, or you could have a combobox based on the Customers table, and when the "Booked" checkbox is checked, have the combobox dropdown and enter the customer data that way. To force the entry of a CustomerID if the box is checked, you could make selecting an ID mandatory.

Instead of having two tables, you could have 2 forms based on queries from the Holidays table, one for booked holidays and one for available holidays. The forms and queries would be essentially identical, the only difference being whether the "booked" checkbox was checked or not.

Get the idea?

Welcome to TheScripts

Linq ;0)>
Nov 4 '07 #2
Thanx, that makes sense and would be so much easier than what i was trying to do. Really wasnt having a good MS access day!
Nov 4 '07 #3
missinglinq
3,532 Expert 2GB
Glad we could help! This same technique can also be used when you want to "delete" a record but archive a copy of it. You simply check the box to mark the record as "deleted." If you need to re-instate the record, you simply uncheck it!

Linq ;0)>
Nov 5 '07 #4

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

Similar topics

3
by: hi | last post by:
Hi, I've created a form, on the bottom it has the navigation buttons to move to the next/previous records. However, the button for "new record" is greyed out (i can't select it). How do I make...
6
by: allyn44 | last post by:
HI--what I am trying to do is 2 things: 1. Open a form in either data entry mode or edit mode depending on what task the user is performing 2. Cancel events tied to fields on the form if I am in...
1
by: chfran | last post by:
I have a form (continuous) that show me data from a table (not a query). I can only modify and move between the data of the first record. I cannot move to the 2nd, 3rd, or 85th record, only the...
8
by: Daniel | last post by:
Hi, Does anyone know if it is possible to put an aspx page inside of another? OR run an aspx page and capture the output as a string and then write this out to a page.... So for example say...
9
by: Joshua.Buss | last post by:
I am trying to move a record from one linked table to another within access, but I'm a complete beginner to VBA and don't know exactly where to begin. I have an access file that has the two...
3
by: igendreau | last post by:
I'm trying to clean up a database of mine, and I need to convert some old DAO code over to ADO. When I was using DAO, I had no problem running this script and deleting the record using rs.Delete. ...
10
by: MLH | last post by:
Suppose, in a multi-user environment, you have append query SQL in a VBA procedure that looks like INSERT INTO MyTable... and the next line reads MyVar=DMax("","MyTable... You can never be...
1
by: gshawegypt | last post by:
Hi.... Using Access 2003.. I need help with the following... I have a form with a series of option combo's which as selected, filter data to the end chose.. I would like to record the...
2
by: EManning | last post by:
I posted a question on 5/5/08 asking how to trap an error caused by multiple users trying to access the same patient. Here's what I posted: "Using A2003. I've got an FE with a main form with a...
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
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
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.