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

Linking, lookups or back coding or what?

2
I have a table with about 50 integer fields (coded answers to questions), and equal number of tables where those integers correspond to short bits of text. (Human readable version of those answers.) I now want to produce either a query or a table where all the integers have been replaced with the corresponding bits of text.

Linking the integer fields result in an extremely slow query after 18 or so linked tables, and if I try to link all the about fifty tables, Access complains that the query is too complicated.

What am I doing wrong? This seems such a common problem, I feel I'm missing something very fundamental. How do I do this?
Feb 15 '10 #1
3 1239
beacon
579 512MB
I just want to make sure I'm understanding what you're doing...you have a table with one field and one record for EVERY record in your integer table?

If that's the case, you should really scrap all the extra tables and create just one 'Answer' table and put all the answers in it with an autonumber field to ID them (primary key). Make sure your integer table also has an autonumber field to ID each record.

Then, I would create a third table that is related to each of the first two using a foreign key (one to answers, the other to integers) and then create the link here. You will be able to see the ID for the integers here and can assign one or more answers to each of the items.

Does that make sense? It follows your basic database normalization techniques.
Feb 15 '10 #2
kallo
2
No, I have one big table where the answers are coded by numbers, say, 1 to 4, and lots of other, small tables, mapping the coding, say, 1=" I agree strongly", 5="I disagree strongly", as well as handling missing answers and miscoding.

Currently I have solved the issue by having made several update queries, each handling ten fields each, and then running them all, but this seems like a very "clunky" and "naff" solution.

The performance drop seems to occur after the query includes over 15 tables, with a 18 field query taking a LOT of time, whilst you hardly notice the delay with a ten table update query.

I'm quite sure there is a more "professional" way to handle this task, or Access wouldn't get used in serious applications.


P.S. the field value matching in queries seems to not work with empty values (ie. a missing value in the coded answers table doesn't match to a missing value in my codes to text mapping table.) This is no biggie, but I'm wondering about that too.
Feb 15 '10 #3
beacon
579 512MB
Check out the attached database and let me know if I've gotten close to what you're attempting to accomplish.

There are 3 tables, one for question numbers (that you called integers), one for question answers (the short bits of text), and a table (that I called tblQuiz) that combines them into one. The last table is setup with combo boxes so you don't have to physically touch the other two tables to enter data.

There is also a query that is basically a print out of tblQuiz. You can filter this however you want though, or could create a report with this query as the record source if your ultimate goal is to create Quizzes for students.

Let me know...
Attached Files
File Type: zip QuizDB.zip (11.6 KB, 54 views)
Feb 16 '10 #4

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

Similar topics

3
by: Steve | last post by:
C# I have some combo boxes, full of lookup descriptions. When I retrieve a dataset for my record, the values that need binding to the combos are the actual record IDs that relate to these...
2
by: Jeff Pritchard | last post by:
Some time ago I am sure I came across something that said this was possible, though it doesn't seem to work. A client wants to replace an Access back-end with SQL Server tables. We have tried...
3
by: Tym | last post by:
OK - daft question of the day time... If I have database A which contains all the live data, and Database B which contains linked tables to those is A (i.e. a front end) is there a way of seeing...
1
by: Russell | last post by:
Hi, I've been reading a lot about not using lookups in tables lately. Thus far, what I've been able to understand from my reading is this: - Do not use lookup fields in tables because they...
2
by: Terry Lee Tucker | last post by:
Let me explain: I have written a "C" function which contains calls to other functions, all of which work with an API to a mileage database product called PCMiler. These functions make...
1
by: deiopajw | last post by:
I have a Back end database on a network drive. The copies of the front end are located on individual pc's (in their C drive). The problem arises when a laptop user naturally hooks up to the...
5
by: news.microsoft.com | last post by:
We have recently upgraded from VS2002 to VS2005 and I'm having a problem with the linker always performing a full link even though nothing has changed. In searching the newsgroups I found that I...
3
by: =?Utf-8?B?TWlrZSBE?= | last post by:
I want to place a link on my Intranet that points to a shortcut on the client workstation. So far I have not been able to phrase the question well enough to get any good responses. I saw it on...
0
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
15
by: kamarajbca | last post by:
dear sir, Now I am doing the task that the index page contains the US states Map.When i am pressing on the particular state that state map will be open.I create the link to states using with...
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: 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
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...
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
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...

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.