473,503 Members | 10,046 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
CustContactNumber
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 1610
NeoPa
32,557 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,557 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
1751
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...
1
1251
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...
1
2594
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...
17
2786
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...
49
14282
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...
7
2150
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
1282
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...
5
1923
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...
1
1639
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...
10
4425
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...
0
7207
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
7095
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
7294
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,...
1
7015
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
7470
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...
0
5602
agi2029
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,...
1
5026
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...
0
4693
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...
0
1523
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 ...

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.