Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Certification Forums > Microsoft Office and Office Server
Home Forums Register Search Today's Posts Mark Forums Read

Two Access Problems

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 28-Feb-2008, 08:52 PM
Shepherdess's Avatar
Shepherdess Shepherdess is offline
New Member
Posts: 44
Points: 99 Shepherdess has between 1 & 100 points
Power: 3
None
Join Date: 05 Apr 2007
Location: London, UK
WIP: MCSE, MCTS
Two Access Problems

I am preparing a simple database in Access 2003 and have been struggling with two things:

- I have got two fields in a table, one for Country, the other for County. I wanted to change the form in such a way that if someone chooses England as a Country, only English counties appear. I have tried two methods: one with visible yes/no for certain counties (when country=England, only English counties are visible), the other with message box, e.g. "Fife is not in England", but I can't seem to get it right. Do you think I will have to put English, Scottish, Welsh counties in separate fields (it only just occured to me as an option :-) )?
- the other problem is with choosing topic. Users will have to choose main category, and then (if they want) choose subcategory. I have created the lookup table for categories, but I am not sure how to set up subcategories.

I have looked for the answers in two books (one about Access 2003, the other about VBA) and in Office.microsoft.com but could not find anything even remotely relevant. I would not like you to write a code for me, just give me some hints where to look for the answers

Thanks in advance.


Last edited by Shepherdess : 28-Feb-2008 at 08:53 PM.
 
Reply With Quote
  #2  
Old 28-Feb-2008, 09:34 PM
ThomasMc's Avatar
ThomasMc ThomasMc is offline
Longterm Member
Posts: 503
Points: 597 ThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 points
Power: 14
None
Join Date: 04 Dec 2006
Location: Glasgow
Certifications: MCDST
WIP: MCSA (70-270), CCNA, CCNP
on the first bit if I have picked you up correctly, you could use filters or a Query/View using your txtbox/combo value as the parameter and the after update event to requery the data





Last edited by ThomasMc : 28-Feb-2008 at 09:37 PM.
 
Reply With Quote
  #3  
Old 28-Feb-2008, 09:37 PM
Sparky's Avatar
Sparky Sparky is online now
Premium Member
Posts: 5,338
Points: 2719 Sparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 pointsSparky has over 2500 points
Power: 85
None
Join Date: 15 Dec 2005
Location: Scotland
Age: 29
Certifications: MSc MCSE MCTS N+ A+
WIP: Server 2008 upgrade & 70-284
This might help mate...

http://www.thescripts.com/forum/thread605958.html


 
Reply With Quote
  #4  
Old 28-Feb-2008, 09:42 PM
ThomasMc's Avatar
ThomasMc ThomasMc is offline
Longterm Member
Posts: 503
Points: 597 ThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 points
Power: 14
None
Join Date: 04 Dec 2006
Location: Glasgow
Certifications: MCDST
WIP: MCSA (70-270), CCNA, CCNP
yeah just like that




 
Reply With Quote
  #5  
Old 28-Feb-2008, 10:00 PM
Shepherdess's Avatar
Shepherdess Shepherdess is offline
New Member
Posts: 44
Points: 99 Shepherdess has between 1 & 100 points
Power: 3
None
Join Date: 05 Apr 2007
Location: London, UK
WIP: MCSE, MCTS
Thanks! I am going to sleep now but will play with this tomorrow :-)

 
Reply With Quote
  #6  
Old 29-Feb-2008, 08:54 AM
harpistic's Avatar
harpistic harpistic is offline
Valued Member
Posts: 242
Points: 171 harpistic has over 100 pointsharpistic has over 100 points
Power: 5
None
Join Date: 01 Feb 2008
Location: London, UK / Antigua, Guatemala
Age: 32
Certifications: Pet Geekery
WIP: cure for insomnia
Quote:
Originally Posted by Shepherdess View Post
I am preparing a simple database in Access 2003 and have been struggling with two things:

- I have got two fields in a table, one for Country, the other for County. I wanted to change the form in such a way that if someone chooses England as a Country, only English counties appear. I have tried two methods: one with visible yes/no for certain counties (when country=England, only English counties are visible), the other with message box, e.g. "Fife is not in England", but I can't seem to get it right. Do you think I will have to put English, Scottish, Welsh counties in separate fields (it only just occured to me as an option :-) )?
- the other problem is with choosing topic. Users will have to choose main category, and then (if they want) choose subcategory. I have created the lookup table for categories, but I am not sure how to set up subcategories.

I have looked for the answers in two books (one about Access 2003, the other about VBA) and in Office.microsoft.com but could not find anything even remotely relevant. I would not like you to write a code for me, just give me some hints where to look for the answers

Thanks in advance.
Use two lookup tables, in the first one have country/country id, in the second one have county, countyid. In the OnChange event for the first combo, set it to combo2.column(x) = the value of the id column of the first one.


A computer once beat me at chess, but it was no match for me at kick-boxing.
 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Certification Forums > Microsoft Office and Office Server


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with lsass patch? nugget Security & Viruses 5 01-Feb-2008 07:05 AM
Troubleshooting Access Problems Using Packet-Tracer tripwire45 News 0 21-Oct-2007 08:52 PM
MS Access Problem rusty155 Software 26 07-Feb-2007 12:50 PM
Problems with VPN and Internet access Bluerinse Networking 9 20-Oct-2005 06:17 AM
Outlook problems AJ Microsoft Office and Office Server 7 13-May-2004 09:53 AM


All times are GMT. The time now is 05:09 PM.

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages