473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Relationships

45 New Member
I have created a database for restaurant reservation and meal ordering system.
After I created a form to place orders a new table appeared and I dont know why?

tblReservation
ReservationID
CustID
NumberOfGuests
TableID
TimeID
Date

tblCustomer
CustID
CustName
CustContactNumb er
CustNotes

tblTable
TableID
LocationID
NumberOfSeats

tblTime
TimeID
TimeLabel

tblOrder
OrderID
TableID
GuestsArrived
GuestsLeft
Notes

tblLocation
LocationID
LocationName

tblOrderDetail
OrderID
ItemID


tblItem
ItemID
Name
ItemTypeID
NumberInStock
Re-OrderLevel
Cost
Notes
InUse

ItemTypeID
ItemType

A new table appears as a T-Junction form between (tblOrderDetail ) OrderID and (tblItem) ItemID, which is a copy of tblItem.

Is this something to do with the fact that tblOrderDetail has 2 primary keys?
Feb 9 '07 #1
5 1626
NeoPa
32,568 Recognized Expert Moderator MVP
I'm a little confused.
Where does the table appear? In the Relationships window or in the database Tables window? What is its name?
Feb 10 '07 #2
potassium flower
45 New Member
It only appears in the relationships window, not the tables window, it's called itself tblItem1. Its an exact copy of tblItem with the Primary key linked to tblOrderDetail in just the same way as tblItem does. Via right clicking you can open it; all the records are the same as tblItem.
Feb 10 '07 #3
NeoPa
32,568 Recognized Expert Moderator MVP
It only appears in the relationships window, not the tables window, it's called itself tblItem1. Its an exact copy of tblItem with the Primary key linked to tblOrderDetail in just the same way as tblItem does. Via right clicking you can open it; all the records are the same as tblItem.
Thank you.
In that case it is not a new table as such. It is a way of showing a separate relationship. This may, or may not, indicate a problem. The form has created a relationship to handle what it needs. This may be because the relationship you already set up was wrong somehow. It's hard to tell without access to your database :(
Feb 10 '07 #4
MMcCarthy
14,534 Recognized Expert Moderator MVP
tblOrderDetail
OrderID
ItemID


tblItem
ItemID
Name
ItemTypeID
NumberInStock
Re-OrderLevel
Cost
Notes
InUse

ItemTypeID
ItemType

A new table appears as a T-Junction form between (tblOrderDetail ) OrderID and (tblItem) ItemID, which is a copy of tblItem.

Is this something to do with the fact that tblOrderDetail has 2 primary keys?
The two primary keys would not cause this problem. The relationship line between tbllItem and tblItem1 indicates a circular reference. That ItemID in tblItem is actually referencing itself. Have you created a lookup dropdown reference in the tblItem Primary Key looking up a list of itself by any chance? Or have you accidently referenced tblItemType to ItemID rather than ItemTypeID?

Mary
Feb 11 '07 #5
potassium flower
45 New Member
ItemType is referencing the right place, I may have created a lookup that referenced itself in the past though. For now I've deleted the relationship with tblItem1 and adding more records on the frmOrder hasn't created it again. Hopefully that will be the end of it. Thanks for the help.
Feb 11 '07 #6

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

Similar topics

1
1757
by: cvchen | last post by:
Hello, I'm implementing a data dictionary (catalogging system) that can be searched in several ways. I finished the first version without using any databases, I just had pickled dictionaries to store the data and I unpickled files as necessary to get at search results, that worked just fine for me. Problem is, my boss wants me to integrate the data into MS Access because my project will eventually become part of a larger project.
1
1266
by: crispy | last post by:
This is something that I am never completely sure about: When building an Access db to be accessed by ASP, do I need to worry about setting the Relationships between the tables and the Join Types (one to many ,etc.), or can I just rely on declaring the relationships in my SQL statements? How about the setting for Referential Integrity. Should I ever have to worry about having Access enforce those, including update and deleted related...
1
2612
by: E. Zorn | last post by:
Hi, i use Access as a frontend via ODBC to an Linux-based postgresql. I have a problem in a form where I use a lot of subforms. In some cases ( i couldn't detect when - but I really try to) the form and Access hangs. The only way to close the form is to close Access via "cross" (upper right corner). If I try then to view once again the form I get the following error message:
17
2799
by: Jelmer | last post by:
Hi, I am mildly familiar with ms access developement and I have been asked to port and document a ms access app. I expect the porting (97 to XP) to be fairly straightforward. However documenting it is another matter. How do you people document your access apps? Just create an ERD and have comments in the vba code? List all the forms and it's purpose ? Are there any methodologies / best practices / examples I can look at? thanks in...
49
14322
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The application is relatively big: around 200 tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data (SQL Server 2000), 40 users. I'm wondering what are the disadvantages of using Access as front-end? Other that it's not...
7
2158
by: Ruben Baumann | last post by:
Just wondered if anyone has had occasion to use, or does use, FileMaker, or Raining Data's Omnis, or Alpha5's software, and how they compare with Access? Ruben
0
1296
by: Mark Lubratt | last post by:
Hello, I'm trying to convert an Access application to have its backend be PostgreSQL. I've created the schema and imported the data without a problem. My problem is that the Access application wasn't written by me and has numerous queries and table relationships that I want to replace in place with tables linked to the new backend.
5
1932
by: MightyAC | last post by:
Corrupt data in an access database seems to occur far too often. What's worse is that compacting an access 2000 or later db with corrupt data can result in the destruction of relationships. It appears that during a compact access will remove corrupt records. If those removed records create referential integrity problems access deletes the relationship leaving orphaned relational data and missing relationships. Users can then unknowingly...
1
1648
by: laura | last post by:
I am new to Access, trying to figure it out on my own. I am trying to create a form to input the same information in 3 different tables. The 3 tables each have a different number as the primary key, although they each do contain the other 2 numbers in their tables. I have been unsuccessful and am wondering if perhaps my relationships are inaccurate.
10
4440
by: Richard | last post by:
Hi folks, thanks for taking the time to read this (and hopefully point our where I'm going wrong). The scenario: I have a local Access2007 database which links in several read only mySql tables via ODBC. The problem:
0
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
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,...
0
8732
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 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...
1
6164
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
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...

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.