473,387 Members | 1,621 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,387 software developers and data experts.

Best way for doing something?

anoble1
245 128KB
Guys,
I have a table that has 5 Part Number columns. If I want to price those 5 part columns from another table what is the best way? See screenshot. Right now I am linking each field (5) to the same table, all i did was duplicated the table.
This is taking forever to run though. Any ideas? I had to break off in 5 columns cause they are all different.

Mar 27 '18 #1
2 1663
PhilOfWalton
1,430 Expert 1GB
Your picture is very difficult to read, so I think, if you want help, it would be best if you told us a little bit about what you are trying to achieve.
I have a feeling that you have a product that contains 5 parts, and you want to set a price against those parts to get the price if the product, but I may be well wrong.

Phil
Mar 28 '18 #2
twinnyfo
3,653 Expert Mod 2GB
anoble1,

One thing that may be slowing down your query is that you area ctually nesting queries within your query, rather than tables. So, think about it this way, for each of the five fields in the parts table, Access must run the same query--for each field. If you have a bunch of records, that could take some time. So, for each record returned by your query, there are five additional queries being run. This may be re-duplicated for each record (I don't know enough about how Access joins queries to queries).

Try joining the underlying table instead of using queries and see if performance improves.

Other than that, it looks like one field is OEM, and then Baldwin 1/2 and Fleetguard 1/2. If none of the items in OEM are found in either the Baldwin or Fleetguard collections, then you might could make smaller Part Number tables to JOIN. But--I don't think that is the best structure for a DB, since all the parts might just be differentiated by brand name (for example).

But, as Phil said, if we knew exactly what you are trying to achieve, we could probably redirect to a different/better solution.

Hope this hepps!
Mar 28 '18 #3

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

Similar topics

4
by: bissatch | last post by:
I am trying to use DIV tags and a class to hide the DIV and the HTML within. I will use JavScript to change it from hidden to visible but that will come later. Below is the code I am using ...
6
by: Michael Sparks | last post by:
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at...
5
by: One Handed Man [ OHM# ] | last post by:
I'm doing something stupid !, I must be because this throws no exception, but does not delete the file which "is" there. Amy ideas ? Try System.IO.File.Delete("c:\test.txt") Catch ex As...
4
by: David R | last post by:
Here's the relevant XHTML: ------------------------------------------------------------------------------------- <dl> <dt>Add...</dt> <dd><label for="radSection" ><input type="radio"...
4
by: Fensic | last post by:
Hello everyone. I am having a problem installing and configuring PHP 5.1.6. Initially I had it installed and working with Apache 2.2.3 and MySQL 5.0.24 but decided to abort and redo the...
9
by: Randy | last post by:
Hi all, I've been working on a simple two column layout for a site, but according to browsershots.org, my desing is not showing up correctly in Win/IE 5.01, 5.5 & 6 ! Please see details here:...
5
by: Simon Brooke | last post by:
This is supposed to be a very simple XSL stylesheet to strip styling information out of HTML documents - it could not be more basic. And yet, it doesn't work. I'm obviously getting something very...
34
by: raphfrk | last post by:
This program should copy one file onto the other. It works if I compile it with gcc to a cygwin program. However, if I compile it with the -mno-cygwin option, it doesn't work (this targets native...
0
by: Pat | last post by:
Hi Guys, Please help me. I am having a strange issue. Not sure if I am doing something wrong or this is a bug. This is a sample code. This contains 2 text boxes(txtName, txtPhone) and 2 buttons...
1
by: ShadowBlades1 | last post by:
This code will show the data from the .txt file "file1" the data is (0.0 0.1 0.2 0.5 0.8 0.9 1.0) What I'm trying to do is take these float values and add them all up and divide them by 7 (finding...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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
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,...
0
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...

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.