Results 1 to 3 of 3
  1. #1
    annienelson621 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2

    Question Using command button to query and open form

    I very little experience with Access, and have been asked to create a student discipline database for my school. I have starting using another database I found, and am attempting to modify it in a way that works for my teachers. I have made a table with student information, and then I have made a discipline for that has a record for each student. I would like to be able to use a command button to pull up a student's particular record (form) by entering their student ID number (which is listed in the table).



    I have created a command button on form I am using as a switch board. I would like to be able to click on the command button, be asked for the student's ID number and then have it pull up the student's discipline form (that I have already created). I have been playing with creating a macro, but have been unsuccessful. Any help or direction would be appreciated!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    click the button in design mode,
    in the properties sheet
    goto the EVENT tab
    in the ON CLICK event, drop the box to make a new macro
    in the macro use the command OPENFORM fStudents
    save the macro
    save the form.

  3. #3
    annienelson621 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2
    Thank you for the quick response! When I try that, it pulls up the first student's form, which is definitely a step in the right direction. Is there a way to make it so that when I click on the button it prompts me for the parameter value of the student ID number and then pulls up that student's form/record?

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

Similar Threads

  1. Replies: 8
    Last Post: 06-25-2014, 08:03 AM
  2. Replies: 6
    Last Post: 05-07-2014, 11:26 AM
  3. Replies: 4
    Last Post: 06-01-2013, 11:32 PM
  4. Open Form or Command Button problem
    By geordie_taz in forum Forms
    Replies: 3
    Last Post: 12-13-2012, 10:09 AM
  5. Use a command button to open a form
    By johnpaul in forum Forms
    Replies: 24
    Last Post: 09-23-2010, 12:29 PM

Tags for this Thread

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