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  dBforums > PC based Database Applications > Microsoft Access > Reset Drop Down on the basis of selection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-13-06, 12:45
mustish1 mustish1 is offline
Registered User
 
Join Date: Jul 2006
Posts: 149
Reset Drop Down on the basis of selection

There are 5 drop down in my form:

ddl1,ddl2,ddl3,ddl4,ddl5.

ddl1 is mandatory to select rest of them user has to select only one other wise it gives error what i write on my button so that it check if user select values from more then 1 drop down ( in ddl2,3,4,5)it gives error message and reset again all the drop down to blank.

Thanks,
Reply With Quote
  #2 (permalink)  
Old 09-13-06, 13:04
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
For simplicity and speed, I would instaniate a local variable to keep track of how many ddl's have been selected:

Dim intDdlCnt As Integer

private sub ddlx After_Update()

if intDdlCnt > 1 Then
'reset stuff here
Else
intDdlCnt = intDdlCnt + 1
end if
end sub
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On