A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

1 Form with 2 inputs for 2 tables



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 16th, 2009, 05:06 PM posted to microsoft.public.access.forms
-Karl
external usenet poster
 
Posts: 15
Default 1 Form with 2 inputs for 2 tables

I am wondering how I can go about this. I have 1 form with 2 inputs
that a user will fill in (i.e. State and County).

Here is what I am trying to do.

1) Once the user selects the State, the Country dropdown list would
auto populate the counties per the state. However, my ONChange
command doesn't work on the State dropdown. I need to pull the ID out
of the state table.

I've looked into macros which I don't believe would work. So I was
looking into coding the event but alas, I am not sure how to go about
this with SQL commands. I have been looking online for some examples
but nothing yet.

Thank you for helping me. I'm pulling out my hair.



Table State
----------------------
ID State
1 Florida
2 Texas

Table County
---------------------------
ID StateID County
1 2 pinellas
2 1 polk


Table User
-----------------------
ID User StateID Country ID
1 ted 1 2
2 sue 2 1
 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.