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

    ="[Mem_ID] = " & Str(Nz(Screen.ActiveControl,0))


    how can we use ="[Mem_ID] = " & Str(Nz(Screen.ActiveControl,0)) in search for a record of a macro

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,927
    depends on how your form is working - if the code to open the query is a button, the screen.activecontrol will be the button. You might want to consider using screen.previouscontrol instead.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Docmd.openform "frmDetail",,"[Mem_ID] = " & Me!TxtMemID

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

Similar Threads

  1. Replies: 9
    Last Post: 09-16-2014, 03:56 PM
  2. Replies: 1
    Last Post: 09-03-2014, 03:27 AM
  3. Replies: 8
    Last Post: 07-15-2014, 05:56 PM
  4. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  5. form won't go "full screen"
    By stephenaa5 in forum Forms
    Replies: 3
    Last Post: 10-30-2009, 04:10 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