Drop down list

oskar_diaz

Registered User.
Local time
Today, 00:05
Joined
Jul 28, 2003
Messages
18
im sorry but im kinda new to access. i have a drop down list that i want to be created. its linked to names of people. Everytime i select a name i need the forms to be cleared. So that new information can be entered. Not sure how to approach it.


Thank you
 
Do you mean you want the form to go to a new blank record? Try using this
DoCmd.RunCommand acCmdRecordsGoToNew
in the AfterUpdate event of your name list control. If you aren't sure how to assign code like that to events, you should take a look at the Access help.
 
This is my issue. I have a drop down list with names on the main form. I have various sub forms within this form. I want to be able to select a name and he fields bellow being blank. Thank you for your help.
 
So, you want the subforms to go to new records? You don't want to search for a previous entry with the username and erase it, right?

If it's the first case, you can make the subforms go to new records by using a variation of the code I first posted. I haven't tried this myself, but I think you can get it to work by using this:
Me.subformname.SetFocus
to move the focus onto the subform, then
DoCmd.RunCommand acCmdRecordsGoToNew
 

Users who are viewing this thread

Back
Top Bottom