Results 1 to 3 of 3
  1. #1
    googalabosh is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    48

    Pop-up Sub Report

    I want to create a button that opens a subform based on the VIN of a vehicle. How do I do this?

    Database Design Summary:

    Table 1: Vehicles (Contains vehicle information to include VIN number)

    Table 2: Maintenance (Contains logs of each time the vehicle was repaired or had general maintenance completed)

    Form 1: Vehicle Overview (This is the primary form used to display and maintain the information for each record/vehicle. It displays general information about the vehicle.)

    I want to put a button on Form 1 which opens a popup window with a subform containing a list each time that specific vehicle was maintenanced. It should look up these records via the VIN of the vehicle.



    How do I do this?

    TIA!

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,966
    Open the form using the where parameter of openform
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,807
    I don't understand the notion of opening a subform in a popup window/form. The subform for vehicle details should be based on the VIN field from the main form and that subform should be on the main form. The VIN field should also be part of the subform so that the 2 forms are linked via Child and Master linked field properties. Whatever VIN is showing on the main form, the related maintenance records should be showing on the subform.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 16
    Last Post: 03-13-2018, 05:24 PM
  2. Replies: 9
    Last Post: 07-03-2017, 11:24 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