Results 1 to 2 of 2
  1. #1
    sephiroth2906 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2011
    Posts
    73

    Make form evaluate entry on subform and copy another value from said subform

    Before I begin with my question, I know this is convoluted. I could figure out a much better way to do this, but unfortunately I am attempting to make a mockup of portions of an existing program for training purposes and it was programmed by nitwits. Not that I am much better, but I shouldn't be paid to program anything...

    But I digress.

    What I am working on that has got me in a bind right now is this.

    I have a form that opens when I press F4 in another form. This pulls up a window with a subform inside drawing information from a table with three fields, Select, Code & Description. What I need to happen is, when the user puts a "1" in the select field and presses Enter, the program takes the item in the code fields that corresponds to the "1" that was entered under select and opens a form of the same name (say ENTNAME for example) discards the "1" entered on the subform and closes the selection form. It would also have to kick back an error if there were anything other than a "1" in a select field or more than one "1" entered (referencing two or more codes)

    This is what the form used to select the code currently looks like:

    Click image for larger version. 

Name:	Capture.JPG 
Views:	8 
Size:	42.9 KB 
ID:	23850
    I appreciate any ideas. This went a bit over my head. Thanks!

  2. #2
    JamesDeckert is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    sounds like in the afterupdate event of Sel you want to open the other form (after checking for validity of what was entered).
    This second form would then close the first form.

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

Similar Threads

  1. Replies: 4
    Last Post: 03-30-2012, 01:47 AM
  2. Replies: 7
    Last Post: 07-15-2011, 01:58 PM
  3. copy data from a subform to the main form
    By declanfogarty in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 05:31 AM
  4. Replies: 2
    Last Post: 03-04-2010, 02:04 PM
  5. copy info in subform as well as main form
    By Coolpapabell in forum Forms
    Replies: 0
    Last Post: 09-30-2009, 10:02 AM

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