Results 1 to 6 of 6
  1. #1
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107

    Open a form in Dialog

    Hello,

    Im trying to open a form as a popup and was wondering how to code it. I would also like to match two variables - OrderNum and Oper


    This is what I have so far with just the one variable OrderNum



    DoCmd.OpenForm "frmOrderOpertationsLongTxt", acDialog, , "OrderNum =" & Me.OrderNum

  2. #2
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    acDialog on wrong place...

    DoCmd.OpenForm "frmOrderOpertationsLongTxt", , , "OrderNum =" & Me.OrderNum, , acDialog

  3. #3
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    Great! Thank you. Do you know how I add the second variable to this line?

    "Oper =" & Me.Oper


    DoCmd.OpenForm "frmOrderOpertationsLongTxt", , , "OrderNum =" & Me.OrderNum, , acDialog



  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    DoCmd.OpenForm "frmOrderOpertationsLongTxt", , , "OrderNum =" & Me.OrderNum & " AND Oper =" & Me.Oper, , acDialog
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    Thank you everyone!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Gina was happy to help and I was happy to jump in while she was offline.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. want dialog form to open in datasheet view
    By gunitinug in forum Access
    Replies: 2
    Last Post: 09-04-2017, 08:13 PM
  2. Replies: 7
    Last Post: 10-24-2016, 01:55 AM
  3. Open Form in Dialog mode in Add NewRecord
    By JrMontgom in forum Programming
    Replies: 1
    Last Post: 02-08-2015, 06:47 PM
  4. Open form as dialog box and in specified position
    By Fredrik831 in forum Programming
    Replies: 3
    Last Post: 11-30-2012, 08:28 AM
  5. Form doesn't open in Dialog mode
    By accessnewb in forum Programming
    Replies: 3
    Last Post: 08-02-2011, 08:38 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