I have two tables
Table1( TripEventTypes) - TripEventyTypeID
-
EventTypeID
Table2( TripEventTypeDe tails) - TripEventTypeID
-
EventTypeDetailID
-
EventTypeDetailValue
I am trying to insert multiple records into table 2 from a form. Is there a way to do this? example would be a form for a Flight event
Where EventTypeDetail ID = DepartureCity EventTypeDetail Value = City Name
Where EventTypeDetail ID = DepartureDate EventTypeDetail Value = Date
and so on.. for Arrival City, ArrivalDate, Flight Number, SeatNumber
All this would be store in the TripEventTypeDe tails for each type of event.
Right now I have a Main Form(Table1) linked to a Continous SubForm(Table2) where I can input the many details as necessary.
6 1947 FishVal 2,653
Recognized Expert Specialist
Hello.
Looks like this stuff could help you.
Regards,
Fish.
NeoPa 32,571
Recognized Expert Moderator MVP
In what way is your current solution not working for you? It seems to me that your current solution should be fine.
The Problem NeoPa is that
suppose i would like to enter flight information in Table2
it would show up as - TripEventTypeID EventTypeDetailID EventTypeDetailValue
-
1 DepartureDate 01/03/09
-
2 DepartureCity London
-
3 ArrivalDate 01/04/09
-
4 ArrivalCity NYC
The problem might be that this table isn't normalized. I am storing multiple types of data in one column. Also other than in a continous form there doesn't seem a way to edit all 4 records within the same form.
I was thinking of changing the design and adding tables to accomodate "Accomodations, Flights,Taxis,, CarRental" and then relate that to a Trips Table.
What do you think?
NeoPa 32,571
Recognized Expert Moderator MVP
What is TripEventTypes. EventTypeID? I can't see any explanation for this.
Frankly I'm struggling to get any type of handle on how your data fits together. It's good that you show some example data, but "it would show up as" ... is very unclear as to what you are trying to say. Did you mean "should"? "Does" possibly? Is this talking about how it should show on the form?
I can't make sense of it I'm afraid.
The current setup of tables :
TravelAutohriza tion > Trips > TripEventTypes > TripEventTypeDe tails
Each Travel Authorization has one or more Trips (
Each Trip has one or more Events (i.e. Flight, Accomodation, Taxi, Car Rental)
Each Event has one or more Event Details (i.e, Departure Date, Arrival Date, Confirmation#, Room)
Does this make sense
NeoPa 32,571
Recognized Expert Moderator MVP @NeoPa
Not much I'm afraid. I have a confused picture in my head. I need to know how TripEventTypes. EventTypeID fits into it. This doesn't seem to get me anywhere.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: misscrf |
last post by:
I am currently working on a database, in 3rd normal form, which is for
candidates who apply for a job with the law firm that I
workd for. My issue is with good form design.
I have a main form. Then I have 3 pages on a tab control ( 4 if the
type of candidate validates that is is to be shown) Each page
has a subform. The subforms can be either single or continuous, I
think I am still deciding what I want to lock down this entry...
|
by: MHenry |
last post by:
Hi,
I know virtually nothing about creating Macros in Access.
I would appreciate some help in creating a Macro or Macros that
automatically run(s) 14 Queries (three Make Table Queries, and 11
Append Queries) when the Database is first opened, and then again
anytime I invoke the Macro (somehow) after the database is already
open. The latter function is useful, because the queries must be rerun
every time data is added, deleted, or...
|
by: anoj |
last post by:
Hi All
i need to prevent multiple logins from the same user at the same time.
what is the best way to do this .
How can i detect if a user closes the browser window without logging
out so tht his/her id can be removed from the global list maintained
for the looged in users
|
by: James Radke |
last post by:
Hello,
I have a multithreaded windows NT service application (vb.net 2003) that I
am working on (my first one), which reads a message queue and creates
multiple threads to perform the processing for long running reports. When
the processing is complete it uses crystal reports to load a template file,
populate it, and then export it to a PDF.
It works fine so far....
|
by: ricky.agrawal |
last post by:
I'm really not sure how to go about this in Access. What I've created
is a table for each location. Those tables are identical in format but
different in information.
The tables are named after key points such as the store number and the
store ID. The fields of those tables are generic fields such as sales
per day, bank deposit and what not. The first field for each store
table is the date and I've set that as the primary key as one...
| |
by: Kaur |
last post by:
Hi, I have been successful copying a vba code from one of your posts on
how to copy and paste a record by declaring the desired fields that
needs to be copied in form's declaration and creating two button "copy"
and "paste". Works like magic.
My problem is how can I copy multiple records and paste them at the
same time. My data entry form has main form that has a Questionlist box
of Questions. The second list box on the same form displays...
|
by: NumberCruncher |
last post by:
Hi All,
I am struggling with setting up my first system of tables, forms,and reports, and could use your help!
I am setting up a database to keep track of the production of a produced item. The item is a panel, with a specific texture. There are standard panels that are then produced in a limited number of specific textures. The number of panels/project varies, so I keep track of the actual number of panels per project with the count:...
|
by: davidevan |
last post by:
I'm trying to update a single field in a table according to the an age
category as a condition.
The meat of the code that executes looks like this (I created a record
set, and loop through it until there are no records):
Code:
Do While Not rstRecSet.EOF
|
by: ApexData |
last post by:
I have a continuous form that has Allow- Add/Edit/Del set to False, so
that the form is in View mode only.
I have New/Edit/Del buttons in the form header. My New & Edit
buttons work as a like. My Del button works great also, but for one
record at a time only.
In ViewOnly mode, the user is able to highlight a single record to
delete using the RecordSelector, press the DelButton and it works
fine. However, if multiple records are...
|
by: Jason Northampton |
last post by:
Hello This is the first time I've used a discusion forum and up until now I have managed to use and or modify VB code from the various sites on the web, until now!
This is a simple problem and I am trying to update a contact record with FirstName and LastName contained on a table TblContacts via a Combo Box using the Limit to List function to add new contacts and perform a search to check if the contact is new or already exists on the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |