473,382 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Access 2007 question

This may be hard to follow. I will try my best to explain.

I have two tables that I would like to link in a specific way. Both tables have a field name labelled "Price". Both also have a field name labelled "Item type".

In the first table, each of my stock items are listed in the "Item type" field, with the corresponding price in the "Price" field.

Now the problem....

In the second table, I have many sales receipt entries, with the item types entered (sorted by date), but no entries in the price field. How do I automatically transfer the price to the second table based on what is entered in the first table?
Sep 23 '08 #1
7 967
NeoPa
32,556 Expert Mod 16PB
I'm not sure you should. Have a quick look at Normalisation and Table structures. OK. A quick look isn't really possible, but this is nevertheless highly recommended reading and as concise a description as you will find on this fundamentally important topic.

According to normalisation rules, the data should stay in table1 (a product reference table) and the transactions should simply display the linked values within a query (showing both tables linked). The only time you would store the prices in with the transactions is if you considered the prices subject to fluctuations over time. In this scenario the prices would be added on transaction entry and not retrospectively as you suggest.
Sep 23 '08 #2
mshmyob
904 Expert 512MB
If you could post all your field names for each table and then indicate your foreign and primary keys and then give a short explanation of what your application is supposed to do then I am sure we can give you an appropriate answer.

cheers,
Sep 23 '08 #3
NeoPa
32,556 Expert Mod 16PB
That said, I will still provide a method to do as you request. I recommend you follow my earlier advice, but what you choose to do in your database is not my concern. However, as you have provided so little information about your database i can only do so in very general terms.

You would create an Update query based on the two tables linked together on the [Item Type] fields of both tables. You would probably need to filter on the records whose [Price] fields are blank (Null). Update the [Price] field of one table with the [Price] field of the other.

If you need more help then you will need to be clearer about what you're working with.
Sep 23 '08 #4
mshmyob
904 Expert 512MB
Sorry Neo I posted at the same time as your previous post - didn't see your original post. I agree it appears not to be normalised that is why I requested he give us the table structure along with PK's and FK's (I have a feeling they will need work). Also a description of what the application does will give us a better understanding of what exactly he is trying to accomplish.

Given the little data from the OP your reccomendation is more than I would have attempted to venture.

If I got in the way I am sorry.

cheers,
Sep 23 '08 #5
NeoPa
32,556 Expert Mod 16PB
Of course not.

Yours was a perfectly sensible and appropriate post.
Sep 23 '08 #6
I found a solution to my problem:
** Link Removed as per site rules **
Thank you.
Sep 23 '08 #7
NeoPa
32,556 Expert Mod 16PB
Thank you for posting that you have found a solution. I'm afraid I've had to remove the link (If you check out the rules you will see that links to competing sites are not allowed (Things that are generally unacceptable)). A solution can be posted in the thread - with attribution to the other site if required.

Although there is also a solution in this thread, we appreciate your telling us not to spend any more time worrying about it.

Welcome to Bytes!
Sep 23 '08 #8

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

Similar topics

27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
1
prn
by: prn | last post by:
Hi folks, I'm relatively new to Access, but I seem to have drawn the short straw, so I have the assignment for my workplace of looking for problems/inconsistencies in migrating applications to...
15
by: chaseexchange | last post by:
First, a brief explanation of why this has happened. I purchased, what I thought, was a fully functional program written in Access last year from a local programmer. This program was to be used as...
6
newnewbie
by: newnewbie | last post by:
Was looking all over to find an answer to my question, but did not. I have a database that lists different users entering multiple records every day. For me, the only way to see how many days the...
0
by: raylopez99 | last post by:
10 years ago, the below was written (see very end, after my signature RL). What, if anything, has changed? I have Access 2003 and soon Access 2007 on a Windows XP Professional or Windows...
10
by: Arno R | last post by:
Hi all, So I bought a new laptop 10 days ago to test my apps with Vista. (home premium) Apparently Office 2007 is pre-installed. (a time limited but complete test version, no SP1) So I take the...
2
by: Terry Chapman | last post by:
I have a 2003 Access .mda add-in which I can sign using my Thawte digital certificate. I am now migrating this add-in to Access 2007 and when I try to add my Thawte digital signature Access 2007...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
1
by: kihsore | last post by:
Hi All, I have a question on compatibility and conversion issues with Access 2007. My question is will a Runtime created on an early versions of Access 2007 (ie;Access 97,2000,2002,2003) run on...
5
by: sphinney | last post by:
Basic question: Does anyone know how to go about adding a control to an Access 2007 form that will allow viewing a Word 2007 document? Reason for asking: My office is about to receive 100+/-...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.