473,699 Members | 2,813 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 5223
bloukopkoggelmander
184 New Member
Yip no problem. I will hold myself back and let you get on . I will go back to the post in question and get you all the details you asked for. Wont be long....
Feb 27 '07 #71
bloukopkoggelmander
184 New Member
Right I had a look at that datbase again. Must say the bit I emailed you does not really have much on it. But from that, the problems are as follows:

When using TestFrom to select Client , Treatment,Cost and Date, upon saving a new entry, the selected date is not entered into the Treatments table. It is just blank in the table.

The second thing is that I cannot see anywhere in the tables how a treatment, cost or date is related to a specific client( One client can have multiple treatments) after making a entry on the TestForm.

This would of course be a problem when it comes to creating reports.

The form to add a new client works fine, no problem with that one.
Feb 27 '07 #72
NeoPa
32,569 Recognized Expert Moderator MVP
The database was actually posted to explain how you couldn't get the FullName made up from the FirstName & LastName fields to work.
When I opened up the database I found that they did all work (as far as I could see but there was more than one form in it so I wasn't sure exactly what you wanted me to look at).
Am I to understand now that this is no longer a problem. It's what I've been focusing on the whole way through (As I mentioned before I never like to build on sand so I can't move on from one point unless it's resolved otherwise confusion surely follows). Help me to understand what the current status is and how we got there.
Feb 27 '07 #73
bloukopkoggelmander
184 New Member
Hi Neopa

You are right, it is working now!! Dont know what I did to make it work, but when I tested it before I sent it through to you, I could not get it working. Well, I am not going to mess around with it just in case it pops again. So yes I think that issue is solved then.

But I tried to use this function, but could not get any treatment,cost or date bound to this concatenated name. I dont know how to link this to it's corresponding ClientID.

Do you prefer me close this thread now that the main issue seems to be solved and start a new one for the other issue relating to this as above?
Feb 28 '07 #74
NeoPa
32,569 Recognized Expert Moderator MVP
That's up to you at this stage.
Normally I would say yes, but I'm happy to continue guiding you onwards in here if that's preferable for you.
You already know how demanding I am about clear communication so I'll leave it up to you ;)
Feb 28 '07 #75
bloukopkoggelmander
184 New Member
Neopa

I do agree with your principles on posting, so what I will do is close this post as the main issue has been solved ie. Concatination of first and last name.

What I will do though is post a new thread, but do what I tried in the latter part of this post( before I got told off :-) ) and post you the database I have updated and am now at a point where I am stuck.

Does that sound ok? That way we start a new thread with a new issue.....
Mar 1 '07 #76
bloukopkoggelmander
184 New Member
Hi NeoPa

Her is the link to the new thread :

Filling table from form using only ID'S
Mar 1 '07 #77
NeoPa
32,569 Recognized Expert Moderator MVP
Neopa

I do agree with your principles on posting, so what I will do is close this post as the main issue has been solved ie. Concatination of first and last name.

What I will do though is post a new thread, but do what I tried in the latter part of this post( before I got told off :-) ) and post you the database I have updated and am now at a point where I am stuck.

Does that sound ok? That way we start a new thread with a new issue.....
That sounds eminently sensible my friend.
As a favour (so I can catch up with it before I would otherwise get up that far), can you post a link to the new thread here when you've set it up.
Mar 1 '07 #78
NeoPa
32,569 Recognized Expert Moderator MVP
Hi NeoPa

Here is the link to the new thread :

Filling table from form using only ID'S
OK, so I didn't refresh my browser (again) before posting.
Seems you read my mind anyway :D
Mar 1 '07 #79

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

Similar topics

18
12805
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
2706
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
3018
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
18958
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
2582
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
1584
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
2139
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
18520
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
1892
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
8687
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
8617
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
9174
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8914
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
8884
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...
0
7751
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, 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...
1
6534
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
5875
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
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.