Results 1 to 5 of 5
  1. #1
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727

    How to go back from datasheet query to form


    I have a form that when you click a button it will close the form then show you the datasheet query. How do you make a macro to go back to the form from the datasheet when you are done viewing it?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The only code tables and queries can have are data macros (for Access 2010 and up).

    Why open a query? Open a form or report bound to the query. Have code behind form to reopen the other form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    Great idea. Thanks. I'll try that.

  4. #4
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    Oh wait. If I made a form thats bound to a query, is there a way to make the form display a list of records that I can look at without having to look at one record at a time? Thats the reason why I liked the actual query in the datasheet view because it shows me a list of records. I would like to try the form way rather than report because you can't put a button to click on to do a macro to go back to a previous form can you?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Form in Datasheet View looks like a table/query but buttons won't show. A form in Continuous View can be made to look almost like a table/query by rearranging controls horizontally. Basic form design options.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  2. Replies: 8
    Last Post: 08-26-2012, 11:11 PM
  3. Replies: 4
    Last Post: 05-21-2012, 08:21 AM
  4. Replies: 4
    Last Post: 05-04-2012, 03:41 PM
  5. Replies: 7
    Last Post: 12-24-2009, 08:44 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