Solved

Access 2003: joining table where one table gets initialized and entering data.

Posted on 2011-09-08
3
187 Views
Last Modified: 2012-06-21
I have two tables:

tblEventHeader.
EventID
EventName
EventDate

tblGLCodes
EventID
GLCode

tblEventHeader gets initialized every morning and reloaded with new events that were created on our website.  I download it, import to Access.

If I initialize tblEventHeader after tblGLCodes has been updated, will that destroy the integrity of tblGLCodes?

I'm also having trouble creating a simple Form and Subform for data entry.  The subform (tblGLCodes) data gets updated.  But, then when I reload the form, the data doesn't show up on the form even though it exists in the table.

Hope this make sense.

Thanks
0
Comment
Question by:OnsiteSupport
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 36504258
"Destroy" is a strong word.

If you have referential integrity established, you may get an alert if a record in tblGLCodes contains a value in EventID that does not exist in tblEventHeader, ...then again, here you will get an "Alert/warning"
But nothing will be "Destroyed"


<If I initialize tblEventHeader after tblGLCodes has been updated, >
Your ultimate goal would be to design your system so that the chances of this happening is minimized.


<I'm also having trouble creating a simple Form and Subform for data entry. >
Again, are these tables related in the database window?
(Database) Tools-->Relationships
Is referential Integrity enforced?

If so, then you should be able to use the form wizard to easily create your Main/sub form

Also make sure there is nothing that forces the subform into "Data Entry" mode
(or any other mode that would not make the data display)


JeffCoachman


0
 
LVL 10

Assisted Solution

by:plummet
plummet earned 250 total points
ID: 36504293
Hi Onsitesupport

Well, if you are loading new data into tblEventHeader and keeping the old data in tblGLCodes then it's likely you will lose the link between them - that is EventID. However, if the data you're importing into tblEventHeader includes the events that are already in tblGLCodes then I guess it'll be OK.

As for your form/subform question, are you linking the two via the EventID field? If so then are you sure the data you're entering has the correct EventID, and that it's getting inserted into tblGLCodes? It seems to me that the problem lies there. You could check the data just entered to ensure the EventID is what you expect it to be.

It's difficult to be precise without seeing the real system, but I hope that is of some use.

Regards
John
0
 

Author Closing Comment

by:OnsiteSupport
ID: 36529396
Since the Event list will not change, I made an additional table with the existing EventIDs and joined them.  Works great.

Thanks for the help
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now