Results 1 to 5 of 5
  1. #1
    tggsun is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    11

    Angry contional open a form and enter data

    Hello,
    I'm a new to use Access 2007. I created 3 forms in access. The main one content a gender field. the other 2 forms, one for woman only, another one for man only.

    I would like the access to do are:
    when I select gender=man, the access will do, 1). check if there is any data was filled in woman only form. if there is, clean this out. 2). pop up the man only form to let user enter data. 3). after finished enter data in the man only form, click a button to save data and close the form.

    do the oppsite things if gender=woman.



    I would like to know how to do that and which book has the kind of information that I can learn from that.

    Thanks,

    dd sf

  2. #2
    KrisDdb is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    Hello

    Try this. You can have the option of selecting the gender on the main form in multiple ways.. buttons, radio buttons, checkboxes, dropdown list etc. Choose any one of these options and code the event to open only the form related to the gender selected. (code depends on the option you choose).Then in the open and close events of the second form, you can code it to close and open the master form alternatively. You set the visibility of the main form to FALSE for this. That would make it look good.

    HTH

  3. #3
    tggsun is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    11
    Hello,
    thank you for your information.
    you mentioned "code the event to open only the form related to the gender selected". would you please let me know which book I can use to find out the way to code the event and some useful form design issue.
    Thanks,
    dd sf

  4. #4
    KrisDdb is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    Access for Dummies 2007 - pretty generalized book and good to get you started. But not sure how far books can get you. You can rather try this

    http://allenbrowne.com/tips.html

    And there are tons of other sites to get you started with the coding. Good luck.

  5. #5
    tggsun is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    11
    thank you. I'll try.
    dd sf

Please reply to this thread with any new information or opinions.

Similar Threads

  1. OPen Form to add data
    By joemills62 in forum Forms
    Replies: 3
    Last Post: 06-17-2011, 10:14 AM
  2. Replies: 6
    Last Post: 06-17-2011, 04:39 AM
  3. Replies: 0
    Last Post: 10-12-2010, 06:08 AM
  4. Using composite keys to enter data in a form
    By kymmyg in forum Database Design
    Replies: 2
    Last Post: 09-08-2010, 01:20 PM
  5. can't enter data in some form fields
    By ashiers in forum Forms
    Replies: 1
    Last Post: 09-18-2008, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums