Results 1 to 3 of 3
  1. #1
    Mohammadsharif is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    8

    Opening forms from selected options of combo box


    i want to open forms based on combo box selection

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I have a table, in it is the caption and table/queries users can pick from.
    User picks a table/ and this button code opens it. But you'll notice, all my forms start with f,
    reports; r, ...

    Code:
    Select Case LCase(Left(cboTbl, 1))
       Case "f"
         DoCmd.OpenForm cboTbl
       Case "q"
         DoCmd.OpenQuery cboTbl
       Case "t"
         DoCmd.OpenTable cboTbl
       Case "m"
         DoCmd.runMacro cboTbl
       Case "r"
         DoCmd.OpenReport cboTbl, acViewPreview
    End Select

  3. #3
    Mohammadsharif is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    8
    thanx its solved

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

Similar Threads

  1. My combo box is only showing a few of the options
    By breakingme10 in forum Forms
    Replies: 2
    Last Post: 07-29-2014, 03:29 PM
  2. Combo Box Options
    By AnnWalls in forum Access
    Replies: 4
    Last Post: 05-06-2014, 06:06 PM
  3. Form using options for reports with selected dates
    By AussieGal in forum Programming
    Replies: 13
    Last Post: 10-12-2012, 01:37 AM
  4. Replies: 8
    Last Post: 06-04-2012, 07:20 AM
  5. Restrict Combo Box Options
    By KWarzala in forum Forms
    Replies: 1
    Last Post: 03-03-2010, 04:46 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