Español Français Deutsch Italiano Nederlands Svenska Dansk Japanese Chinese (Simplified) Russian
 
AVForums.com twitter AVForums is a member of CEDIA. THX certified reviewer.  Click for more information. AVForums reviewers are ISF Certified.  Click for more information.
 
The UK's biggest and best home entertainment electronics forums  
4 million visitors each month


Forums Register Blogs Information Social Groups Search Today's Posts Mark Forums Read
Go Back   AVForums.com > Lifestyle Topics > General Chat

Latest AVForums Movie Reviews
Galaxy Quest Blu-ray ReviewMy Bloody Valentine - Special Edition Blu-ray ReviewThe Universe: Complete Season One Blu-ray ReviewTerminator Salvation Blu-ray Review20th Century Boys: Chapter 2 - The Last Hope Blu-ray Review
North By Northwest (50th Anniversary Edition Blu-ray Book) Blu-ray ReviewScrooge (A Christmas Carol) Blu-ray ReviewGray Lady Down - Original Motion Picture Soundtrack CD ReviewUp Blu-ray ReviewLéon Blu-ray Review

Similar Threads
thread Thread Starter Forum Replies Last Post
Help with website problem Damo121 Operating Systems and Software 43 Yesterday 5:56 PM
Netgear DG843 *v5* Router & Wireless 360 Problems? Lagavulin Xbox Live 22 05-11-2009 12:15 PM
For Sale : PSP slim CF M33 + 10GB MS Pro Duo + Loco Roco and accessories mosso2000 PSP Classified Adverts 7 16-07-2009 5:57 PM
The Virgin V+ Box problem Dr Asqueroso Remote Controls 8 03-07-2009 6:22 PM
Blackberry Flip 8220 Internet Access thedrazen Blackberry Discussions 1 03-07-2009 4:06 PM

Reply
 
Thread Tools Display Modes
Old 03-07-2009, 5:24 PM   #1 (permalink)
Member
 
Join Date: May 2004
Posts: 254
Thanks: Gave 14, Got 22
MS Access problems - Really Stuck

Does anyone out there have any knowledge of MS Access?

I have a large table that has some 750 questions in it relating to vehicle parts. Each of the questions are as a record down the left hand side, whilst along the top there are about 40 different fields. The table is then made up of either a Y for yes or N for no. The point being you can look across the top of the table to the field "hydraulics" then read down for the Y's telling you which questions are required. I can do that with a query simple enough, by putting Y as a critera in the query.

Heres where I lose the plot.

I would like to construct a form that when its opened gives the user the option of selecting which fields they would like to search. It may be the case that only 8 fields are needed. By selecting the appropriate fields via a check box or similar, the user would be be presented with the questions marked Y for the fields they selected in a report.

Help would be greatly appreciated.
blasted is offline   Reply With Quote
Old 04-07-2009, 12:48 AM   #2 (permalink)
Senior Member
 
damo_in_sale's Avatar
 
Join Date: Jan 2005
Posts: 1,303
Thanks: Gave 121, Got 103
Re: MS Access problems - Really Stuck

Quote:
Originally Posted by blasted View Post
Does anyone out there have any knowledge of MS Access?

I have a large table that has some 750 questions in it relating to vehicle parts. Each of the questions are as a record down the left hand side, whilst along the top there are about 40 different fields. The table is then made up of either a Y for yes or N for no. The point being you can look across the top of the table to the field "hydraulics" then read down for the Y's telling you which questions are required. I can do that with a query simple enough, by putting Y as a critera in the query.

Heres where I lose the plot.

I would like to construct a form that when its opened gives the user the option of selecting which fields they would like to search. It may be the case that only 8 fields are needed. By selecting the appropriate fields via a check box or similar, the user would be be presented with the questions marked Y for the fields they selected in a report.

Help would be greatly appreciated.

40 fields is an very large number. When you have so many fields it is often because you haven't rationalised the data structure properly, and this causes all sorts of problems later on.

Lets say you sell DVD's.

You could have a table that has all of the following information:

Customer name, address, tel., DVD ordered, DVD price, etc.

But in this case you should really have three tables.

A customer table:

Name, Address, Tel, email etc.

Then you should have a DVD table: Title, price, stock, etc.

Then you might have an order table:

Order number, Customer Number, DVD number.

These tables are then linked together.

Given that you suggest you have 750 questions, and each question is a record, that sounds like a 'quirky' way to use Access mate, unless I have the wrong end of the stick which is entirely possible .

If you don't know SQL then you can use the Wizards I suppose. If you're a business then you could perhaps do with a professional to help you in this regard.

Kind regards,

Damo


PS, I missed that you can do queries mate. I think I wrongly assumed that you were new to databases and Access. In which case much of what I have written in just ABC. Please accept my apologies.
__________________
Pioneer PDP-435XDE, Lumagen Vision DVI, Pioneer DV-868AVi-S, Sky+, (all ISF'd by Gordon- much appreciated), Arcam AVR280 AV receiver, SVS SBS-01 5.0 with SB12-Plus subwoofer, Logitech Harmony 885. Xbox 360 (under a bed I think, never use it), PS3.

Last edited by damo_in_sale; 04-07-2009 at 12:51 AM.
damo_in_sale is offline   Reply With Quote
Old 04-07-2009, 9:34 AM   #3 (permalink)
Member
 
Join Date: May 2004
Posts: 254
Thanks: Gave 14, Got 22
Re: MS Access problems - Really Stuck

Im still rather new to access, and i dont know how to programme in VB.

The situation is, I was asked to make the existing system more user friendly by sticking a front end on it. If there is a better way to organise the table then i can alter it.

The table is used as a question bank and the goal is to strip out the relevant questions. But i want the user to be able to select which fields they want, for example they may only want to drag out the questions regarding brakes, bearing and axles.
blasted is offline   Reply With Quote
Old 04-07-2009, 10:21 AM   #4 (permalink)
Member
 
Join Date: Jan 2006
Posts: 63
Thanks: Gave 6, Got 60
Re: MS Access problems - Really Stuck

Do you really need to use a form? There's already a feature in Access that'll do what you want. Open the table then look at the filter by form option off the records menu. It'll allow you to set your criteria and then apply the filter so it only shows the rows that match.
RichardK is offline   Reply With Quote
Old 04-07-2009, 3:52 PM   #5 (permalink)
Member
 
Iaind's Avatar
 
Join Date: Jun 2004
Location: Darvel, East Ayrshire
Posts: 136
Thanks: Gave 14, Got 31
Re: MS Access problems - Really Stuck

it certainly sounds as if your database needs to be normalised. Wthout seeing the structure, but based on what you have said already I would suggest the following:

tbl_Section

UID (Integer)
SectionName (Text)
Archived (Integer)

tbl_Questions

UID (Integer)
SectionID (Integer)
QuestionText (Text)
Archived

tbl_Section.UID is the Foreign key (i.e.) linked to tbl_Questions.SectionID

Example Data:

tbl_Sections

UID SectionName Archived
1 Brakes 0
2 Steering 0

tbl_Questions

UID SectionID QuestionText Archived
1 1 What are brakes 0
2 1 Where are the brakes 0
3 2 What is the steering 0

SQL Queries.

To Select Categories/Sections

Select UID,SectionName from tbl_Sections where Archived = 0 order by SectionName

To Select Questions from selected Category

Select UID,QuestionText from tbl_Questions where SectionID = [SelectedSection] and Archived = 0 Order by UID

By using the Archived flag you can set questions on and off without actually deleting them from the database. Also, you can be inputting new data into the database that is hidden until you want it to appear to the user.

Cheers,
Iain
__________________
Onkyo 605:UK PS3:Vista PC:Pioneer DV-490V:Marantz CD5000:Toshiba SD38VB:Screenplay 5700:Goodmans GDB15HD:Wharfedale Diamond 8.3 fronts & centre:Kenwood + Mission Rears and a 1930's Bush Valve radio D.A.C 90A - can't find the sockets to connect this up - or a manual!
Iaind is offline   Reply With Quote
Old 04-07-2009, 4:22 PM   #6 (permalink)
Member
 
Join Date: May 2004
Posts: 254
Thanks: Gave 14, Got 22
Re: MS Access problems - Really Stuck

Thanks chaps, Its all on the works computer, and as such i wont be able to work on it until monday. But rest assured i shall no doubt make a right mess of it.

regards

blasted
blasted is offline   Reply With Quote
Old 04-07-2009, 4:49 PM   #7 (permalink)
Conspicuous Member
 
Singh400's Avatar
 
Join Date: Feb 2006
Location: Earth
Posts: 8,364
Thanks: Gave 507, Got 1,151
Re: MS Access problems - Really Stuck

I’ve tried to understand your post several times, but I get nowhere. For a start it sounds like your DB isn’t properly set-up/designed.

How are you inputting data? Directly into the table view, or via form?

It sounds like “questions” and “hydraulics” are in one table. They should be in separate tables, with correct relationships.

Then pulled together using queries, and the data entry should take place via form built from the query.

If it all possible, could you upload a mock sample of your DB for us to look at?

I’m no DB expert, so no guarantees
__________________
[CPU: Q9450 @ 3.6Ghz|RAM: Corsair PC2-8500 (2x2GB)]
[MOBO: Asus P5Q Deluxe (1406)|HDD#1: Samsung F1 750GB]
[HDD#2: OCZ SSD V1 32GB|GFX: BFG 9800GTX+ OC|PSU: Corsair HX 620W]
Singh400 is online now   Reply With Quote
Old 04-07-2009, 6:27 PM   #8 (permalink)
Member
 
Join Date: Jan 2006
Posts: 63
Thanks: Gave 6, Got 60
Re: MS Access problems - Really Stuck

I don't understand why anyone feels the need to redesign the database. The table has only got 750 rows in, so even for Access it's a very small table, and with the way the OP is using it there's not going to be anything other than the simplest queries run against it. And, if any of the questions can be in more than one of the groups of parts, the design is correct anyway.
RichardK is offline   Reply With Quote
Old 04-07-2009, 11:26 PM   #9 (permalink)
Member
 
mark1080p's Avatar
 
Join Date: Feb 2008
Posts: 512
Thanks: Gave 49, Got 39
Re: MS Access problems - Really Stuck

Quote:
Originally Posted by RichardK View Post
The table has only got 750 rows in, so even for Access it's a very small table, and with the way the OP is using it there's not going to be anything other than the simplest queries run against it.

Agree.

As its a small amount of data, I think it might be best to export to excel and build an auto filter on the 40 columns.

Please correct me if im wrong but all you need is a simple query to filter what questions to ask when choosing car part?

Regards

Mark
__________________
TV: LG-37LF66 & Sky+ HD DVD:Toshiba HD EP30 Consoles: Sony PS3 320GB; Nintendo Wii |AVR: Sony STR DG820 | HD-DVDs 36 Blu-Rays: 28
mark1080p is offline   Reply With Quote
Old 05-07-2009, 11:44 AM   #10 (permalink)
Member
 
Join Date: May 2004
Posts: 254
Thanks: Gave 14, Got 22
Re: MS Access problems - Really Stuck

To try and give a better understanding of why this table is needed. If you were to build a vehicle, you would also need to supply a maintenance plan for that vehicle. People (us) then need to check that maintenance plan against the mandatory requirments of vehicle maintenance before we can sign it off. So, if you were to have a form that by use of a check box for example, you could check the required parts, it would then pull up the appropriate questions. the questions relate to individual requirements e.g. for hydraulics, does the plan ask for the calibrations of gauges?

The table its self is really easy. At present there is no real need to input any data, i'm not to bad with the form side of things. Whilst the questions are records running down the left hand side, the fields along the top are the different components, the table matrix is then filled out with Y or N. I dont really see how i could break it down, other then to have a table called hydraulics, with between 10 to 40 questions and so on for all 40 sections. Its not to bad for me to use, but other people with no access skill at all will be using it, hence the need for a pretty tick box form and a printed report.

The ideal solution for the other office users is to be able to open access, a front sheet pops up, so they dont see the table. on this sheet is a list with all the fields, the user simply checks the required ones, access then pulls all the questions for each field with a Y, and puts it in a report.

I do appreciate the help guys, so keep it coming.
blasted is offline   Reply With Quote



Bookmarks

Tags
access, problems, stuck
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT. The time now is 11:32 PM.

AV Forums
Optimised for Firefox.
RSS Feed
AVForums.com is owned and operated by M2N Limited.
Copyright © 2000-2009 M2N E. & O. E.
Global Gold
Web Hosting