473,748 Members | 3,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table relationships

184 New Member
Hi all

I have been working on this project now for 4 months and is still no further than the first step. This is driving me to suicide.

As a testing database I have set up the following:

Table 1(Clients) :

ClientID
Firtsname
Lastname
HouseNumber
Streetname
Town
Postcode
HomePhone
MobileNumber
Email

Tabel 2(Treatments) :

TreatmentID
Treatment
Cost
Date

Now I am not sure how to relate these tables . I also want to set up a tabbed form and on the first page only enter new client details but then on the second enter any treatments for existing clients. Now how do you link a specific treatment to a client?

After 4 months I should know how to do this, but I think I have gotten myself into such a muddle I dont know left from right and plus we have just upgraded to Access 2007.

Thanks for any advice.
Feb 8 '07
78 5228
NeoPa
32,571 Recognized Expert Moderator MVP
There's probably a small problem somewhere that you're overlooking.
Once that's found I expect it will all fit nicely into place for you :)
Feb 21 '07 #61
MMcCarthy
14,534 Recognized Expert Moderator MVP
Right I have tried somthing different now.

I have changed the tables as follows :

Clients (Nothing changed)
Treatments (TreatmentID, Treatment)
Cost(CostID,Cos t)
Client Treatments(Clie ntID,TreatmentI D,CostID,Treatm entDate)

The idea for the last table is to be used for my form where I add treatments to existing customers. Only problem is that when I base my form on this table, the dropdown fileds only shows the ID's which is not user friendly. I cannot find a way for it to show things like Treatment,Cost.

This is propably no the right way of doing it......
In the table design go to these fields and go down to the properties. The column widths should be set to 0cm;4cm. I am just using 4 as an example width here. The point is that setting the first column (the ID column) to 0 will hide it and you will now be able to see the second column.

Mary
Feb 21 '07 #62
NeoPa
32,571 Recognized Expert Moderator MVP
Hi there Neopa

No worries, I have been thrashing away at this problem. Close to sitting in a corner somewhere and cry the rest of my living years away, but still having a go though. Is access just not particularly user friendly or is it just me....
I've now looked at your db.
I can't find a problem though. Can you describe to me briefly and clearly what you are getting (in which form) that you would not expect or do not want.
Maybe test out the copy of the db you posted too, rather than only the original. That way we know we're both looking at the same thing.
Feb 22 '07 #63
NeoPa
32,571 Recognized Expert Moderator MVP
BTW I'm going to be away for most of the weekend (In that hideous place called - Cut Off From The Web). Just so you know if you don't manage to reply before Friday evening (GMT).
Feb 22 '07 #64
bloukopkoggelmander
184 New Member
Hi there Neopa

No worries man. I wont have much time to respond either, Time to give some attention to the family. It might be best if we pick this back up again next week then.

Have a nice weekend.
Feb 23 '07 #65
NeoPa
32,571 Recognized Expert Moderator MVP
;)
Catch up next week then.
Feb 23 '07 #66
bloukopkoggelmander
184 New Member
Hi there Neopa

Applogies for my late reply , but I have had all sorts of problems over the last couple of days.

Right I am including a slightly ammended database, which I have changed slightly by adding a extra table and some forms.

Form one, NL New Client Form works as it should as I am able to add new Clients and it updates the table accordingly.

Form two, NL New Client Treatments works as it should as I am able to add new Treatments and it updates the table accordingly

Form Three, NL Costs works as it should as I am able to add new Costs and it updates the table accordingly.

The problem I am having here is with form Four, NL ClientTreatment s. All I want to see on this form is a dropdown list with the Client's First and last name concatenated, A dropdown list with a choise of treatments, a dropdown list with a list of costs to select and then a Date selection.

When making my selections I then want to save the contents of this form to table NL NewClientTreatm ents which only lists the id fields for username,treatm ent,cost and a date field. The problem is that I cannot get the form to present the user friendly information like a name and a treatment and then just save everything as ID'S.

Hope this makes sense.

Thanks
Attached Files
File Type: zip Database.zip (28.7 KB, 93 views)
Feb 27 '07 #67
NeoPa
32,571 Recognized Expert Moderator MVP
Now you're going off at a tangent (don't worry about the posting delay btw :))
Going off on a different track while half-way through a problem is guaranteed to confuse one of us if not both. Trust me this is complicated enough dealing with just one thing at a time without branching out before an issue is resolved.
Until I get answers to my last set of questions (post #63) I don't even know where we are on the original point.
Feb 27 '07 #68
bloukopkoggelmander
184 New Member
Hi Neopa

Sorry man, did not mean to confuse you. The database I attached is still the original one I sent you. All I did was add a table which contains, ClientID, TreatmentID,Cos tID,ClientTreat mentID,Treaymen tDate and the form to go with it. I thought that this could make it easier.

As all the other tables would contain the data to be looked up, this table would combine it all to show which client has wich treatment at which cost on which date.

Should I rather go back and use the old one instead? Cause I really did not mean to confuse you man. Only asking for some help and trying to figure it out as well.
Feb 27 '07 #69
NeoPa
32,571 Recognized Expert Moderator MVP
I'm sure you were just trying to be as helpful as possible and we may well get to that stage later.
However, it's quite difficult to work on a problem remotely and one of the (if not the) most important thing to remember is to keep synchronised. In this case, for me to catch up with you I still need answers to post #63 as I loaded up your database copy and couldn't find anything that didn't work.
Now if we go off elsewhere, looking for problems in the database when the problem actually turns out to be with your PC or your settings for instance, then we could get all confused. In a way, you need to let me drive, which can be disconcerting, but without that control of the flow it is too confusing for me, as I have to rely on (almost) all of my information second-hand.
Does this make sense?
Feb 27 '07 #70

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

Similar topics

18
12809
by: Jeremy Weiss | last post by:
I'm trying to build a database that will handle the monthly billing needs of a small company. I'm charting everything out and here's what I see: table for customers sub table to track payments received. No biggie, right? Well, here's my problem. I don't know how to tell access to modify everyone's account balance each month. And I can't just always assume that their monthly bill is $16 just because their balance is $16. If I do that...
21
2712
by: Dan | last post by:
Hi, just ran into my first instance of a backend Access97 database not compacting. I'm getting the "MSACCESS.EXE has generated errors.." message on compact. I've narrowed it down to the largest table which cotains 600k of records. I've tried copying the database and trying to compact that -doesn't work. I've tried Repair and then compact which also doesn't work. I've tried to create a new database and import the tables but it flakes out...
20
3025
by: Ed | last post by:
I am running Access 2002 and just ran the built in Access wizard for splitting a database into a back end (with tables) and front end (with queries, forms, modules, etc.). After running the wizard, I opened the table relationship view and noticed that all the relationships are missing. Is this supposed to happen? If so, why? I've noticed that queries are behaving strangely now, seemingly because the relationships are not established....
4
18964
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL password. I am developing a process that will automatically run at night which will access those tables. I need to be able to give Access the password, as the user currently does, so that the process can run without a password prompt appearing....
1
2586
by: Gandalf | last post by:
I'm creating relationships between tables using VBA and ADOX. I can create one-to-one relationships with an inner join, but I can't figure out how to create these relationships with an outer join (specifically a left outer join). I'm including the code that creates the relationships with the inner join. Any help or suggestions would be greatly appreciated. Thanks! <----- CODE FOLLOWS ----->
2
1585
by: Hi5 | last post by:
Hi, I am working on a project in access 2000, Whilst I already have a table called client and seems to be related with other tables ,I tried making TBL client as lookup too, I ended up having another table called Client_1,The question is: 1- How it created? 2- this Why is this table in relationships view and not anywhere else? 3- Is it the same table as client? 4-can I remove One of them?
4
2145
by: Bri | last post by:
Hi, First let me explain the process I have going on, then I'll address the problems I'm having: 1) Insert records in a temp table using a query 2) Using a query that joins the temp table with TableA Insert records into TableB 3) Delete records from temp Table 4) Table specs; temp Table - 4 fields, 3 indexes, gets 100-4500 records inserted
117
18555
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore for using DIV. There are other disadvantages to not using TABLE/TR/TD, such as the lack of ability...
5
1897
by: mark_aok | last post by:
Hi all, I have a situation where I have a split database. At the back end, I need to - create a new table (I will call it newTable) with the exact fields, and relationships as another table (let's call it oldTable, and I need to copy everything EXCEPT the data). - Then I need to delete oldTable, and rename newTable 'oldTable'
3
536
by: anjee | last post by:
Hello, Is it possible to create multiple foreign keys on a field in a table from values in two separate tables where the field value can be from one table OR the other? For example, I have an Invoice table where the Customer field is linked (foreign key) to the Customer table. As the application has changed, I now want to introduce the concept of prospects by storing them in a table dedicated to prospects only (no customers). I want...
0
9372
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
9324
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,...
0
9247
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 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...
1
6796
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
6074
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
4606
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
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
3
2215
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.