This is a discussion on VBA Code on an On Click Event Procedure within the Microsoft Access forums, part of the Databases category; I have created 2 cascading combo boxes on a form, Client and Magazine. When the user selects the Client, the ...
| |||||||
|
#1
| |||
| |||
| I have created 2 cascading combo boxes on a form, Client and Magazine. When the user selects the Client, the drop down for the Magazine automatically populates with the magazines specific to the client. This is working perfectly. However, if the user goes back and changes the Client, but not the Magazine, the record will save with the incorrect combination. I also have a Submit button, that I coded to save the record and open a new one. I want to add code that will return an error message to the user, if the magazine is not one that the client supports. I have 1 table (tblclients) that lists all of the clients, but I have multiple tables broken down for the magazines for each client. How do I write code that will verify that the magazine is one of the clients? I have already set the Limit to List field to Yes, but that will not work when the client is changed, and the magazine is not. Any and all assistance would be greatly appreciated! |
|
#3
| ||||
| ||||
| Actually, check out this thread: Cascading Combo Boxes It contains 2 samples that I created. Hope it helps
__________________ Join our Folding team: DeveloperBarn Folding ----------------------------------- • Folding Stats - Stanford University • Folding Stats - Extreme Over-Clocking • Folding Stats - Kakao Stats • Folding Stats - Xtreme CPU ----------------------------------- |
| The Following 3 Users Say Thank You to sbenj69 For This Useful Post: | ||
|
#4
| ||||
| ||||
| follow sbenj69s advice.. ... |
|
#5
| ||||
| ||||
| Did this help at all? |
|
#6
| |||
| |||
| Yes, this worked perfectly. Thank you so much for your assistance. |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need PHP/SQL code help...to fix written code | honeybeeaz | PHP Development | 10 | November 11th, 2008 03:22 PM |
| On onchange event hide blank frame | guddu | JavaScript Programming | 3 | September 8th, 2008 09:14 AM |
| Grouping buttons to one event | Shem | .Net Development | 8 | July 17th, 2008 06:53 AM |
| adding an event for my btnDelete in repeater | Shem | .Net Development | 13 | July 15th, 2008 09:33 AM |
| addLoadListener - adding onload event in generic way | Shadow Wizard | JavaScript Code Samples | 0 | July 13th, 2008 01:20 PM |