Results 1 to 4 of 4
  1. #1
    sjacksontx is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    7

    Open another Form if condition is true

    I have a form with a list box called description. If description = "fees" I want to open another form to capture additional information. If description is not "fees" then don't open. I don't know whether can use a macro openform based on condition but don't know what to put in the condition. I'm a novice VB user.


    Thanks for the help.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    If use selects FEEs in the list, the AFTERUPDATE event of the list can fire a macro to open another form.

  3. #3
    sjacksontx is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    7
    i got it to work BUT when I go from one form where I picked a student id then opened new form when "fees" chosen, it doesn't keep the student id value and creates another record instead of filling in on that student. Hope this makes sense. HOw do I a) keep the student id value and b) keep from adding two new records instead of just one?
    Last edited by sjacksontx; 03-25-2015 at 04:16 PM.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Not quite clear as to what you're attempting, here. Do you want to

    Go to a second Form and go to an Existing Record there, that matches the StudentID

    or

    Go to a second Form, create a New Record, filling in the StudentID in that New Record?

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. docmd.open form between dates condition
    By Ruegen in forum Programming
    Replies: 6
    Last Post: 09-22-2013, 11:23 PM
  2. Button to open form with a Where condition
    By Newbie2 in forum Forms
    Replies: 3
    Last Post: 08-07-2012, 01:19 AM
  3. Replies: 4
    Last Post: 02-28-2012, 05:26 PM
  4. Replies: 1
    Last Post: 10-25-2011, 09:47 PM
  5. Start and Stop times where condition true
    By cheshire_smile in forum Queries
    Replies: 3
    Last Post: 07-05-2011, 09:59 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